matthimatiker/opcache-bundle

Displays the state of the PHP opcache in the Symfony profiler toolbar.

Installs: 73 061

Dependents: 0

Suggesters: 0

Security: 0

Stars: 19

Watchers: 2

Forks: 2

Open Issues: 9

Type:symfony-bundle

0.7.1 2018-05-28 17:35 UTC

README

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