Skip to content

Displays the PHP OPcache status in the Symfony profiler toolbar.

License

Notifications You must be signed in to change notification settings

opensalt/OpcacheBundle

 
 

Repository files navigation

OpcacheBundle

Build Status Coverage Status

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:

Profiler page example

Changelog

0.7.0 -> 0.7.1

  • Updated template reference syntax to be compatible to Symfony 4 with Symfony flex (thanks to David Ward)
    • Corresponding issue: #22
    • Corresponding Pull Request: #21

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

0.4.3 -> 0.5.0

  • Avoid conflict on installation with Symfony Flex
  • Dropped PHP 5 support
  • Dropped HHVM support

About

Displays the PHP OPcache status in the Symfony profiler toolbar.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.1%
  • HTML 3.8%
  • CSS 0.1%