The Symfony Polyfill / APCu Component
This component providesapcu_*
functions and theAPCUIterator
classto users of the legacy APC extension.
Installation
- $ composer require symfony/polyfill-apcu
Note
If you install this component outside of a Symfony application, you mustrequire the vendor/autoload.php
file in your code to enable the classautoloading mechanism provided by Composer. Readthis article for more details.
Usage
Once this component is installed in your application, you can use the followingclasses and functions, no matter if the PHP APCu extension is installed ornot in your server. The only requirement is to have installed at least thelegacy APC extension.