PHPackages                             pou/lumen-opcache-clear - 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. [Caching](/categories/caching)
4. /
5. pou/lumen-opcache-clear

ActivePackage[Caching](/categories/caching)

pou/lumen-opcache-clear
=======================

This package allows you to clear OPcache when running PHP in FPM mode.

1.2.3(7y ago)0753MITPHPPHP &gt;=7.0

Since Sep 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/pou/lumen-opcache-clear)[ Packagist](https://packagist.org/packages/pou/lumen-opcache-clear)[ RSS](/packages/pou-lumen-opcache-clear/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (18)Used By (0)

Clear OPcache with ease
=======================

[](#clear-opcache-with-ease)

This Laravel 5 package allows you to clear OPcache, solving a common problem related to cache invalidation during atomic deployments (also called "zero downtime deploy").

Getting Started
---------------

[](#getting-started)

These instructions allows you to install the package into an existing Laravel app.

### Prerequisities

[](#prerequisities)

Lumen 5 up&amp;running installation. Registered Crypt alias.

### Installation

[](#installation)

You can install this package via Composer using:

```
composer require michelecurletta/laravel-opcache-clear
```

You must also install this service provider.

```
// config/app.php
'providers' => [
    ...
    MicheleCurletta\LaravelOpcacheClear\OpcacheClearServiceProvider::class,
    ...
];
```

You must make sure that you've setted the right application url into config/app.php

```
// config/app.php
 'url' => env('APP_URL', 'http://my-app-url'),
```

### Usage

[](#usage)

Once you have installed the package, you can run the following command:

```
php artisan opcache:clear
```

All done! Your OPcache is resetted!

### Suggestion

[](#suggestion)

Run this command during deployment process in order to automate the cleaning process before you app become active!

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 91.7% 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 ~46 days

Recently: every ~167 days

Total

17

Last Release

2844d ago

Major Versions

0.0.10 → 1.0.02016-09-18

PHP version history (3 changes)0.0.1PHP ^7.0

1.0.0PHP &gt;=5.5.9

1.2PHP &gt;=7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1508526?v=4)[alex](/maintainers/pou)[@pou](https://github.com/pou)

---

Top Contributors

[![michelecurletta](https://avatars.githubusercontent.com/u/65455871?v=4)](https://github.com/michelecurletta "michelecurletta (22 commits)")[![DasTippspiel](https://avatars.githubusercontent.com/u/17096025?v=4)](https://github.com/DasTippspiel "DasTippspiel (1 commits)")[![ekateiva](https://avatars.githubusercontent.com/u/12799259?v=4)](https://github.com/ekateiva "ekateiva (1 commits)")

---

Tags

lumencacheOpcacheresetclear

### Embed Badge

![Health badge](/badges/pou-lumen-opcache-clear/health.svg)

```
[![Health](https://phpackages.com/badges/pou-lumen-opcache-clear/health.svg)](https://phpackages.com/packages/pou-lumen-opcache-clear)
```

###  Alternatives

[gordalina/cachetool

Manage your OPcache &amp; APCu cache through the CLI

1.8k3.8M5](/packages/gordalina-cachetool)[amnuts/opcache-gui

A clean, effective and responsive interface for Zend OPcache, with real(ish)-time monitoring, filtering and the ability to invalidate files

1.4k4.8M17](/packages/amnuts-opcache-gui)[peehaa/opcachegui

GUI for PHP's OpCache

1.4k40.0k](/packages/peehaa-opcachegui)[robinn/phpcacheadmin

A web dashboard for your favorite caching system.

4453.6k1](/packages/robinn-phpcacheadmin)[elcobvg/laravel-opcache

Custom OPcache Cache Driver for Laravel. Faster than Redis or memcached.

43336.3k3](/packages/elcobvg-laravel-opcache)[arifhp86/laravel-clear-expired-cache-file

Remove laravel expired cache file/folder

34136.0k](/packages/arifhp86-laravel-clear-expired-cache-file)

PHPackages © 2026

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