PHP code example of marcha / lumen-opcache

1. Go to this page and download the library: Download marcha/lumen-opcache library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

marcha / lumen-opcache example snippets


use Marcha\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();
 php
$app->register(Marcha\Opcache\OpcacheServiceProvider::class);
bash
php artisan vendor:publish --provider="Marcha\Opcache\OpcacheServiceProvider" --tag="config"
 bash
php artisan opcache:clear
 bash
php artisan opcache:config
 bash
php artisan opcache:status
 bash
php artisan opcache:compile {--force}