matthimatiker / opcache-bundle
Displays the state of the PHP opcache in the Symfony profiler toolbar.
Installs: 85 980
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 2
Open Issues: 10
Type:symfony-bundle
Requires
- php: ^7.0.0
- symfony/asset: ^2.7.0 | ^3.0.0 | ^4.0
- symfony/config: ^2.7.0 | ^3.0.0 | ^4.0
- symfony/dependency-injection: ^2.7.0 | ^3.0.0 | ^4.0
- symfony/http-kernel: ^2.7.0 | ^3.0.0 | ^4.0
- symfony/templating: ^2.7.0 | ^3.0.0 | ^4.0
- symfony/web-profiler-bundle: ^2.7.0 | ^3.0.0 | ^4.0
- twig/twig: ^2.0.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ^1.0.0
This package is not auto-updated.
Last update: 2024-12-07 19:17:54 UTC
README
Installation
Install the bundle via Composer:
php composer.phar require --dev matthimatiker/opcache-bundle
Enable the bundle in your kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
/ ...
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
// ...
$bundles[] = new Matthimatiker\OpcacheBundle\MatthimatikerOpcacheBundle();
}
}
Configure Twig as template engine in your config.yml
:
framework:
templating: { engines: ['twig'] }
Usage
After bundle activation, an additional info box shows up in the profiler toolbar. It provides quick access to the current memory usage and hit rate of the Opcache.
The detail page provides comprehensive information about memory state, cache key usage and cached scripts:
Changelog
0.7.0 -> 0.7.1
- Updated template reference syntax to be compatible to Symfony 4 with Symfony flex (thanks to David Ward)
0.6.0 -> 0.7.0
- Added support for Symfony 4 (thanks to PabloKowalczyk)
- Dropped support for Symfony 2.3
0.5.0 -> 0.6.0
- Added missing dependencies (thanks to PabloKowalczyk)
- Added statistics about interned strings (thanks to PabloKowalczyk)
0.4.3 -> 0.5.0
- Avoid conflict on installation with Symfony Flex
- Dropped PHP 5 support
- Dropped HHVM support