PHP Libraries › symfony › polyfill Symfony PHP polyfill library that provides backported features for older PHP versions, ensuring compatibility and functionality.
Package Description Symfony polyfill is a versatile PHP library that bridges the gap between older and newer PHP versions, offering essential functions and classes for seamless compatibility and enhanced functionality across multiple environments and projects.
Classes: APCuIterator Symfony\Polyfill\Apcu\Apcu Symfony\Polyfill\Intl\Idn\Idn Symfony\Polyfill\Intl\Idn\Resources\unidata\DisallowedRanges Symfony\Polyfill\Intl\Idn\Resources\unidata\Regex Symfony\Polyfill\Intl\Idn\Info Symfony\Polyfill\Intl\Icu\DateFormat\MinuteTransformer Symfony\Polyfill\Intl\Icu\DateFormat\DayOfWeekTransformer Symfony\Polyfill\Intl\Icu\DateFormat\Hour2401Transformer Symfony\Polyfill\Intl\Icu\DateFormat\QuarterTransformer Symfony\Polyfill\Intl\Icu\DateFormat\HourTransformer Symfony\Polyfill\Intl\Icu\DateFormat\FullTransformer Symfony\Polyfill\Intl\Icu\DateFormat\Hour1200Transformer Symfony\Polyfill\Intl\Icu\DateFormat\Hour2400Transformer Symfony\Polyfill\Intl\Icu\DateFormat\TimezoneTransformer Symfony\Polyfill\Intl\Icu\DateFormat\DayTransformer Symfony\Polyfill\Intl\Icu\DateFormat\Transformer Symfony\Polyfill\Intl\Icu\DateFormat\YearTransformer Symfony\Polyfill\Intl\Icu\DateFormat\SecondTransformer Symfony\Polyfill\Intl\Icu\DateFormat\MonthTransformer Symfony\Polyfill\Intl\Icu\DateFormat\DayOfYearTransformer Symfony\Polyfill\Intl\Icu\DateFormat\Hour1201Transformer Symfony\Polyfill\Intl\Icu\DateFormat\AmPmTransformer Symfony\Polyfill\Intl\Icu\Icu Symfony\Polyfill\Intl\Icu\Currencies NumberFormatter IntlDateFormatter Collator Locale Symfony\Polyfill\Intl\Icu\NumberFormatter Symfony\Polyfill\Intl\Icu\IntlDateFormatter Symfony\Polyfill\Intl\Icu\Collator Symfony\Polyfill\Intl\Icu\Exception\NotImplementedException Symfony\Polyfill\Intl\Icu\Exception\MethodArgumentValueNotImplementedException Symfony\Polyfill\Intl\Icu\Exception\ExceptionInterface Symfony\Polyfill\Intl\Icu\Exception\MethodNotImplementedException Symfony\Polyfill\Intl\Icu\Exception\MethodArgumentNotImplementedException Symfony\Polyfill\Intl\Icu\Exception\RuntimeException Symfony\Polyfill\Intl\Icu\Locale Symfony\Polyfill\Intl\Grapheme\Grapheme MessageFormatter IntlException Symfony\Polyfill\Intl\MessageFormatter\MessageFormatter Normalizer Symfony\Polyfill\Intl\Normalizer\Normalizer Symfony\Polyfill\Util\Binary Symfony\Polyfill\Util\BinaryOnFuncOverload Symfony\Polyfill\Util\TestListenerForV9 Symfony\Polyfill\Util\TestListenerForV7 Symfony\Polyfill\Util\TestListenerTrait Symfony\Polyfill\Util\BinaryNoFuncOverload Symfony\Polyfill\Util\TestListener NoDiscard Symfony\Polyfill\Php85\Php85 Symfony\Polyfill\Php82\SensitiveParameterValue Symfony\Polyfill\Php82\NoDynamicProperties SensitiveParameterValue SensitiveParameter AllowDynamicProperties Random\Engine\Secure Random\RandomError Random\CryptoSafeEngine Random\RandomException Random\BrokenRandomEngineError Random\Engine Symfony\Polyfill\Php82\Php82 Symfony\Polyfill\Php82\Random\Engine\Secure Symfony\Polyfill\Php83\Php83 DateRangeError DateMalformedStringException DateInvalidTimeZoneException SQLite3Exception DateException DateObjectError DateError DateInvalidOperationException DateMalformedIntervalStringException DateMalformedPeriodStringException Override Symfony\Polyfill\Uuid\Uuid Symfony\Polyfill\Ctype\Ctype Symfony\Polyfill\Php74\Php74 Symfony\Polyfill\Php81\Php81 ReturnTypeWillChange CURLStringFile Symfony\Polyfill\Iconv\Iconv Symfony\Polyfill\Php84\Php84 Deprecated ReflectionConstant Symfony\Polyfill\Mbstring\Mbstring Symfony\Polyfill\Php73\Php73 JsonException Symfony\Polyfill\Php80\Php80 Symfony\Polyfill\Php80\PhpToken Attribute PhpToken ValueError Stringable UnhandledMatchError Close Previous Versions Code Integration Example Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/polyfill/1.33.0/loader.php';
require_once 'libs/symfony/polyfill-mbstring/1.33.0/loader.php';
require_once 'libs/symfony/polyfill-php72/{lib_version}/loader.php';
use Symfony\Polyfill\Php72\Php72;
use Symfony\Polyfill\Mbstring\Mbstring;
$obj = new Php72();
echo '✅ Test OK: ' . get_class($obj);
?>
Report a broken download or code We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion Ask questions, share tips, or report issues below.