kabooodle / laravel-opcache

Artisan commands for PHP OPcache

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel OPcache

Latest Version on Packagist Software License Build Status Total Downloads

Opcache

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

Login to your server/vm and run one of the commands.

Requests are only excepted from the same IP as the server IP.

Clear OPcache:

php artisan opcache:clear

Show OPcache config:

php artisan opcache:config

Show OPcache status:

php artisan opcache:status

Pre-compile your application code (experimental, test before you deploy):

php artisan opcache:optimize

Programmatic usage:

use Appstract\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();

Contributing

Contributions are welcome, thanks to y'all :)

About Appstract

Appstract is a small team from The Netherlands. <3 Laravel, Vue and other awesome tools.

Buy Us A Beer

Would be awesome if you would buy us a beer! Or a lot of beer :)

License

The MIT License (MIT). Please see License File for more information.

About

Artisan commands for PHP OPcache

License:MIT License


Languages

Language:PHP 100.0%