Laravel OPcache package
This package contains some useful Artisan commands to work with PHP OPcache.
If you want to learn more about OPcache and what it can do for your Laravel app, you can read this article on Medium.
Installation
You can install the package via composer:
composer require appstract/laravel-opcache
Then register the service provider:
// config/app.php
'providers' => [
...
Appstract\Opcache\OpcacheServiceProvider::class,
];
Make sure your APP_URL is set correctly.
Usage
Run one of the commands on your server.
Clear OPcache:
php artisan opcache:clear
Show OPcache config:
php artisan opcache:config
Show OPcache status:
php artisan opcache:status
Programmatic usage:
// use Appstract\Opcache\OpcacheFacade as OPcache;
OPcache::clear()
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email hello@appstract.team instead of using the issue tracker.
Credits
About Appstract
Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.
License
The MIT License (MIT). Please see License File for more information.