2017 © Pedro Peláez
 

library laravel-opcache

OPcache helper for Laravel.

image

appstract/laravel-opcache

OPcache helper for Laravel.

  • Thursday, July 19, 2018
  • by gizburdt
  • Repository
  • 17 Watchers
  • 637 Stars
  • 154,696 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 42 Forks
  • 2 Open issues
  • 35 Versions
  • 19 % Grown

The README.md

Laravel OPcache

Latest Version on Packagist Software License Total Downloads, (*1)

This package contains some useful Artisan commands to work with PHP OPcache., (*2)

If you want to learn more about OPcache and what it can do for your Laravel application, read the article on Medium.

Requirements

This package requires Laravel 7 or newer., (*3)

Installation

You can install the package via Composer:, (*4)

``` bash composer require appstract/laravel-opcache, (*5)


If you need to change config values, you can publish the config file with: ```bash php artisan vendor:publish --provider="Appstract\Opcache\OpcacheServiceProvider" --tag="config"

Make sure your APP_URL is set correctly in .env., (*6)

If you want to set a different url to call the OPcache routes (for use with a load balancer for example), you can set OPCACHE_URL., (*7)

Usage

Clear OPcache: ``` bash php artisan opcache:clear, (*8)


Show OPcache config: ``` bash php artisan opcache:config

Show OPcache status: ``` bash php artisan opcache:status, (*9)


Pre-compile your application code: ``` bash php artisan opcache:compile {--force}

Note: opcache.dups_fixmust be enabled, or use the --force flag. If you run into "Cannot redeclare class" errors, enable opcache.dups_fix or add the class path to the exclude list., (*10)

Programmatic usage:, (*11)

use Appstract\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();

Contributing

Contributions are welcome, thanks to y'all :), (*12)

About Appstract

Appstract is a small team from The Netherlands. We create (open source) tools for webdevelopment., (*13)

License

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

The Versions

25/07 2017
08/03 2017
08/03 2017
03/03 2017
27/02 2017
21/02 2017
19/02 2017
15/02 2017
13/02 2017
10/02 2017
10/02 2017
06/02 2017