New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

marcha/lumen-opcache

PHP OPcache Artisan commands for Laravel and Lumen.
156 1

Larablocks Analysis

marcha/lumen-opcache works with Laravel 5 to 8 (latest release 1.0.0, Dec 19, 2020), all past end of life (the last on Jan 24, 2023): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5 to 8, past end of life since Jan 24, 2023
  • No release in the last 12 months (last: Dec 19, 2020)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Dec 19, 2020.
  • No releases in the last 12 months.
  • First released: Dec 19, 2020.
  • 1 open issue on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require marcha/lumen-opcache
Latest Version:1.0.0
PHP:>=7.3
Laravel:5 – 8
License:MIT
Last Updated:Dec 19, 2020
Links: GitHub  ·  Packagist
Maintainer: marcha

Lumen OPcache

Latest Version on Packagist Software License Total Downloads

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 application, read the article on Medium.

Requirements

This package requires Laravel 7 or newer.

Installation

You can install the package via Composer:

composer require Marcha/laravel-opcache

Add the following line in your bootstrap/app.php file to register the provider:

$app->register(Marcha\Opcache\OpcacheServiceProvider::class);

If you need to change config values, you can publish the config file with:

php artisan vendor:publish --provider="Marcha\Opcache\OpcacheServiceProvider" --tag="config"

Make sure your APP_URL is set correctly in .env.

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.

Usage

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:

php artisan opcache:compile {--force}

Note: opcache.dups_fix must 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.

Programmatic usage:

use Marcha\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();

Credits

This package was originally forked from appstract/laravel-opcache.

License

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

Related Packages

rajeevsiewnath/lumen-react

Resource binding for easy model/resource maintainence

215
dusterio/lumen-passport

Making Laravel Passport work with Lumen

1,316,105 649
ersoy-insider/newrelic-custom-event

Sends custom events to newrelic insights

32,365 1
nomadnt/lumen-passport

Lumen porting of Laravel Passport

9,502 4
samfrm/lumen-passport

Making Laravel Passport work with Lumen

763 2

Version History

Version Released PHP Laravel License
1.0.0 >=7.3 ~5.3|~5.4|~5.5|~5.6|^6.0|^7.0|^8.0 MIT
0.1.1 >=7.3 ~5.3|~5.4|~5.5|~5.6|^6.0|^7.0|^8.0 MIT
0.1 >=7.3 ~5.3|~5.4|~5.5|~5.6|^6.0|^7.0|^8.0 MIT