PHPackages                             arnyee/laravel-opcache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. arnyee/laravel-opcache

ActiveLibrary[CLI &amp; Console](/categories/cli)

arnyee/laravel-opcache
======================

PHP OPcache Artisan commands for Laravel.

v1.0.1(1y ago)0331MITPHPPHP &gt;=7.2.5

Since Oct 9Pushed 1y agoCompare

[ Source](https://github.com/arnyee/laravel-opcache)[ Packagist](https://packagist.org/packages/arnyee/laravel-opcache)[ Docs](https://github.com/arnyee/laravel-opcache/)[ RSS](/packages/arnyee-laravel-opcache/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Laravel OPcache
===============

[](#laravel-opcache)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4347648ebf3d84876c35a96774df3d5d7615d433aa77cd65dff8e573a2bb6f7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726e7965652f6c61726176656c2d6f7063616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arnyee/laravel-opcache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/40853ed0592742180318a7622303728db27fd69095d20b9f9f8156354e4cdf04/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61726e7965652f6c61726176656c2d6f7063616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arnyee/laravel-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 application, [read the article on Medium](https://medium.com/appstract/make-your-laravel-app-fly-with-php-opcache-9948db2a5f93#.bjrpj4h1c).

[](#if-you-want-to-learn-more-about-opcache-and-what-it-can-do-for-your-laravel-application-read-the-article-on-medium)

Requirements
------------

[](#requirements)

This package requires Laravel 7 or newer.

Installation
------------

[](#installation)

You can install the package via Composer:

```
composer require arnyee/laravel-opcache
```

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

```
php artisan vendor:publish --provider="Arnyee\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
-----

[](#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 Arnyee\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();
```

Contributing
------------

[](#contributing)

Contributions are welcome, [thanks to y'all](https://github.com/arnyee/laravel-opcache/graphs/contributors) :)

About arnyee
------------

[](#about-arnyee)

Hello I am Árni, I like to try myself with open source projects.

Credits
-------

[](#credits)

Original package by [Appstract](https://github.com/appstract/laravel-opcache)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

580d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3539c127b020ea7c147db21e89dea6b49821d88cc58109ea4d0cf7ce65c23ea4?d=identicon)[arnyee](/maintainers/arnyee)

---

Top Contributors

[![ovanschie](https://avatars.githubusercontent.com/u/3015449?v=4)](https://github.com/ovanschie "ovanschie (138 commits)")[![smecnarowski](https://avatars.githubusercontent.com/u/12491034?v=4)](https://github.com/smecnarowski "smecnarowski (6 commits)")[![thejhnz](https://avatars.githubusercontent.com/u/5363935?v=4)](https://github.com/thejhnz "thejhnz (4 commits)")[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (4 commits)")[![ogorzalka](https://avatars.githubusercontent.com/u/149651?v=4)](https://github.com/ogorzalka "ogorzalka (4 commits)")[![CaraWang](https://avatars.githubusercontent.com/u/4214689?v=4)](https://github.com/CaraWang "CaraWang (3 commits)")[![arnyee](https://avatars.githubusercontent.com/u/39769123?v=4)](https://github.com/arnyee "arnyee (3 commits)")[![orkhanahmadov](https://avatars.githubusercontent.com/u/7041590?v=4)](https://github.com/orkhanahmadov "orkhanahmadov (3 commits)")[![teuunn](https://avatars.githubusercontent.com/u/17406280?v=4)](https://github.com/teuunn "teuunn (3 commits)")[![Cyrille37](https://avatars.githubusercontent.com/u/368965?v=4)](https://github.com/Cyrille37 "Cyrille37 (2 commits)")[![The-Hasanov](https://avatars.githubusercontent.com/u/8019071?v=4)](https://github.com/The-Hasanov "The-Hasanov (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (2 commits)")[![branchzero](https://avatars.githubusercontent.com/u/7685609?v=4)](https://github.com/branchzero "branchzero (2 commits)")[![palpalani](https://avatars.githubusercontent.com/u/716695?v=4)](https://github.com/palpalani "palpalani (1 commits)")[![sangnguyenplus](https://avatars.githubusercontent.com/u/6972407?v=4)](https://github.com/sangnguyenplus "sangnguyenplus (1 commits)")[![drbyte](https://avatars.githubusercontent.com/u/404472?v=4)](https://github.com/drbyte "drbyte (1 commits)")[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")[![ctf0](https://avatars.githubusercontent.com/u/7388088?v=4)](https://github.com/ctf0 "ctf0 (1 commits)")[![michalisantoniou6](https://avatars.githubusercontent.com/u/4642044?v=4)](https://github.com/michalisantoniou6 "michalisantoniou6 (1 commits)")

---

Tags

phplaravelOpcachearnyee

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/arnyee-laravel-opcache/health.svg)

```
[![Health](https://phpackages.com/badges/arnyee-laravel-opcache/health.svg)](https://phpackages.com/packages/arnyee-laravel-opcache)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
