PHP code example of bourne / laravel-opcache

1. Go to this page and download the library: Download bourne/laravel-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/ */

    

bourne / laravel-opcache example snippets


use Appstract\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();
bash
php artisan vendor:publish --provider="Appstract\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}