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

Abandoned → [cvepdb/laravel-opcache-clear](/?search=cvepdb%2Flaravel-opcache-clear)ArchivedPackage[Caching](/categories/caching)

cvepdb/laravel-opcache-clear
============================

This Laravel package allows you to clear the OPcache of a PHP application running in FPM mode with ease.

5.4.0(9y ago)3285GPL-3PHPPHP &gt;=5.5.9

Since Sep 7Pushed 9y ago1 watchersCompare

[ Source](https://github.com/abenevaut/laravel-opcache-clear)[ Packagist](https://packagist.org/packages/cvepdb/laravel-opcache-clear)[ RSS](/packages/cvepdb-laravel-opcache-clear/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (17)Used By (0)

[![Build Status](https://camo.githubusercontent.com/6c3eb47a4f17283dd04f30c482d8064241105747bde9278cb861240b029a4360/68747470733a2f2f7472617669732d63692e6f72672f6162656e65766175742f6c61726176656c2d6f7063616368652d636c6561722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/abenevaut/laravel-opcache-clear)

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)

Laravel 5.4 up&amp;running installation.

### Installation

[](#installation)

You can install this package via Composer using:

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

You must also install this service provider.

```
// config/app.php
'providers' => [
    ...
    ABENEVAUT\Opcache\Clear\App\Providers\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!

Credits to main author
======================

[](#credits-to-main-author)

Original package : [michelecurletta/laravel-opcache-clear](https://github.com/michelecurletta/laravel-opcache-clear)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 95.8% 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 ~13 days

Total

16

Last Release

3330d ago

Major Versions

0.0.10 → 1.0.02016-09-18

1.0.0 → 5.3.02017-02-05

1.0.1 → 5.4.x-dev2017-03-30

PHP version history (2 changes)0.0.1PHP ^7.0

1.0.0PHP &gt;=5.5.9

### Community

Maintainers

![](https://www.gravatar.com/avatar/58612a1aa5133f2d539d761bf346427feac6bca4af731da1d9fd78bab2b9201c?d=identicon)[42antoine](/maintainers/42antoine)

---

Top Contributors

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

---

Tags

laravelcachephp-fpmpurgeOpcachefpmresetclear

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[gordalina/cachetool

Manage your OPcache &amp; APCu cache through the CLI

1.8k3.7M5](/packages/gordalina-cachetool)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)[elcobvg/laravel-opcache

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

43317.1k1](/packages/elcobvg-laravel-opcache)[yediyuz/laravel-cloudflare-cache

laravel-cloudflare-cache

28239.2k](/packages/yediyuz-laravel-cloudflare-cache)[swayok/alternative-laravel-cache

Replacements for Laravel's redis and file cache stores that properly implement tagging idea. Powered by cache pool implementations provided by http://www.php-cache.com/

202541.1k6](/packages/swayok-alternative-laravel-cache)[arifhp86/laravel-clear-expired-cache-file

Remove laravel expired cache file/folder

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

PHPackages © 2026

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