4 Repos
Polyfills that provide modern PHP functions to legacy PHP 5.x environments lacking native support.
Distinct from PSR-5 Implementations: No candidate covers PHP 5.x compatibility polyfills; closest candidates are about PSR standards or PHP security auditing, not runtime polyfills.
Explore 4 awesome GitHub repositories matching development tools & productivity · PHP 5.x Compatibility Polyfills. Refine with filters or upvote what's useful.
randomcompat is a backward-compatibility library that provides cryptographically secure random number generation functions for PHP 5.x environments. It delivers the randombytes() and random_int() functions that are natively available in PHP 7+, enabling legacy applications to generate secure random bytes and unbiased integers from system entropy sources. The library implements a priority-based fallback chain across operating-system CSPRNGs, selecting the best available random source in order of security. It uses rejection sampling to convert raw random bytes into unbiased integers withi
Provides cryptographically secure random byte and integer generation functions for PHP 5.x environments.
This project is a PHP compatibility layer that implements multi-byte string functions for environments where the native Mbstring extension is not installed. It serves as a library for processing text in various character encodings to ensure consistent string handling across different servers. The library provides a set of tools for internationalization text handling, allowing for the processing of non-English characters and diverse languages. It ensures correct string length and manipulation for text containing characters beyond the basic ASCII set.
Implements multi-byte string functions for environments where the native Mbstring extension is not installed.
Dieses Projekt ist ein PHP-Kompatibilitäts-Polyfill, das entwickelt wurde, um Kernfunktionen und Konstanten von PHP 7.2 auf ältere Versionen der Sprache zurückzuportieren. Es dient als Erweiterung der PHP-Standardbibliothek und als Version-Backport und bietet eine Kompatibilitätsschicht, die Lücken im PHP-Kern füllt, um ein konsistentes Verhalten über verschiedene Umgebungen hinweg sicherzustellen. Die Bibliothek ermöglicht die Portabilität von Code über Versionen hinweg durch die Implementierung fehlender Standardbibliotheksfunktionen, wodurch neuere Sprachfeatures auf älteren PHP-Umgebungen ausgeführt werden können. Dies stellt sicher, dass Anwendungen eine konsistente Schnittstelle beibehalten und mit aktuellen Bibliotheken kompatibel bleiben, selbst wenn sie auf veralteten Versionen ausgeführt werden.
Implements core functions and constants from newer PHP versions to ensure compatibility with legacy environments.
This project is a PHP environment compatibility library and polyfill designed to provide a consistent interface for retrieving all incoming HTTP request headers. It functions as a request header parser that extracts and normalizes raw server variables into a predictable associative array. The library ensures cross-platform behavior by detecting missing native functions at runtime and injecting fallback implementations. This allows for standardized request header retrieval and server variable normalization across diverse server architectures and configurations.
Implements a compatibility layer that provides drop-in replacements for missing native PHP functions.