PHP code example of arnyee / laravel-opcache
1. Go to this page and download the library: Download arnyee/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/ */
arnyee / laravel-opcache example snippets
use Arnyee\Opcache\OpcacheFacade as OPcache;
...
OPcache::clear();
bash
php artisan vendor:publish --provider="Arnyee\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}