PHPackages                             noin/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. noin/laravel-opcache

ActiveLibrary

noin/laravel-opcache
====================

PHP OPcache Artisan commands for Laravel.

v1.0.2(1y ago)03MITPHPPHP &gt;=7.2.5

Since Mar 6Pushed 1y agoCompare

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

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

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

[](#laravel-opcache)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f5a860e5b212eba0ef2b79f79c3d5607c48d0e2aae243d3624442f2df15a797d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6170707374726163742f6c61726176656c2d6f7063616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appstract/laravel-opcache)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/827c7e90eee7370afdf71c10f67b10bc6f92145768ed4e7a7d28048fa63e05c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6170707374726163742f6c61726176656c2d6f7063616368652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/appstract/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 noin/laravel-opcache
```

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

```
php artisan vendor:publish --provider="Appstract\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 Appstract\Opcache\OpcacheFacade as OPcache;

...

OPcache::clear();
```

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

[](#contributing)

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

About Appstract
---------------

[](#about-appstract)

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

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance47

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity34

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

3

Last Release

429d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ad7c646e22d71a1bee2805f64223bff8744a3e87c5cafac1c2a785fb6ea310c?d=identicon)[Tinno](/maintainers/Tinno)

---

Top Contributors

[![ovanschie](https://avatars.githubusercontent.com/u/3015449?v=4)](https://github.com/ovanschie "ovanschie (138 commits)")[![tinno-sj](https://avatars.githubusercontent.com/u/177504008?v=4)](https://github.com/tinno-sj "tinno-sj (7 commits)")[![smecnarowski](https://avatars.githubusercontent.com/u/12491034?v=4)](https://github.com/smecnarowski "smecnarowski (6 commits)")[![gizburdt](https://avatars.githubusercontent.com/u/1470623?v=4)](https://github.com/gizburdt "gizburdt (4 commits)")[![thejhnz](https://avatars.githubusercontent.com/u/5363935?v=4)](https://github.com/thejhnz "thejhnz (4 commits)")[![orkhanahmadov](https://avatars.githubusercontent.com/u/7041590?v=4)](https://github.com/orkhanahmadov "orkhanahmadov (3 commits)")[![CaraWang](https://avatars.githubusercontent.com/u/4214689?v=4)](https://github.com/CaraWang "CaraWang (3 commits)")[![teuunn](https://avatars.githubusercontent.com/u/17406280?v=4)](https://github.com/teuunn "teuunn (3 commits)")[![branchzero](https://avatars.githubusercontent.com/u/7685609?v=4)](https://github.com/branchzero "branchzero (2 commits)")[![The-Hasanov](https://avatars.githubusercontent.com/u/8019071?v=4)](https://github.com/The-Hasanov "The-Hasanov (2 commits)")[![Cyrille37](https://avatars.githubusercontent.com/u/368965?v=4)](https://github.com/Cyrille37 "Cyrille37 (2 commits)")[![jpuck](https://avatars.githubusercontent.com/u/15305396?v=4)](https://github.com/jpuck "jpuck (2 commits)")[![stevegrunwell](https://avatars.githubusercontent.com/u/233836?v=4)](https://github.com/stevegrunwell "stevegrunwell (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)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 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)")

---

Tags

phplaravelOpcacheappstract

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[appstract/laravel-opcache

PHP OPcache Artisan commands for Laravel.

1.4k4.9M7](/packages/appstract-laravel-opcache)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to interact with the Anthropic API

71226.4k1](/packages/mozex-anthropic-laravel)[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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