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

ActivePackage[Caching](/categories/caching)

maximkou/laravel-opcache-clear
==============================

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

1.0.3(6y ago)15.5k1MITPHPPHP &gt;=5.5.9

Since Jan 9Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (5)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)

Laravel 5 up&amp;running installation.

### Installation

[](#installation)

You can install this package via Composer using:

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

You must also install this service provider.

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

Check that `url` and `key` options is right defined in your `config/app.php`, example:

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

### Usage

[](#usage)

Once you have installed the package, you can run the following command (usually after deploy):

```
php artisan opcache:clear
```

All done! Your OPcache is resetted!

### Customizations

[](#customizations)

Publish package config, if not published:

```
php artisan vendor:publish --provider="Maximkou\LaravelOpcacheClear\OpcacheClearServiceProvider"
```

All settings is placed in `config/laravel-opcache-clear.php`

- Change uri of cleaner action by editing `uri_slug` option (by default is `opcache-clear`).
- Change guzzle client options by editing `guzzle_options` options, to example, for disabling ssl verification:

```
'guzzle_options' => [
    'verify' => false,
]
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~215 days

Total

4

Last Release

2399d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2118695?v=4)[Maxim Khodyrev](/maintainers/maximkou)[@maximkou](https://github.com/maximkou)

---

Top Contributors

[![maximkou](https://avatars.githubusercontent.com/u/2118695?v=4)](https://github.com/maximkou "maximkou (8 commits)")

---

Tags

laravelcachephp-fpmpurgeOpcachefpmresetclearlaravel-opcache-clear

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[nexxai/laravel-cfcache

A handful of Cloudflare cache helpers for Laravel

1317.7k](/packages/nexxai-laravel-cfcache)

PHPackages © 2026

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