4 repository-uri
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.
Acest proiect este un polyfill de compatibilitate PHP conceput pentru a face backport funcțiilor și constantelor de bază din PHP 7.2 către versiuni mai vechi ale limbajului. Servește ca o extensie a bibliotecii standard PHP și un backport de versiune, oferind un strat de compatibilitate care umple lacunele din nucleul PHP pentru a asigura un comportament consistent în medii diferite. Biblioteca permite portabilitatea codului între versiuni prin implementarea funcțiilor lipsă din biblioteca standard, permițând funcționalităților mai noi ale limbajului să ruleze pe medii PHP legacy. Acest lucru asigură că aplicațiile pot menține o interfață consistentă și pot rămâne compatibile cu bibliotecile actuale chiar și atunci când rulează pe versiuni învechite.
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.