PHPackages                             ez-php/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. [Framework](/categories/framework)
4. /
5. ez-php/opcache

ActiveLibrary[Framework](/categories/framework)

ez-php/opcache
==============

OPcache preload script generator for the ez-php framework — scans class paths and writes a ready-to-use preload.php

1.2.0(1mo ago)00MITPHPPHP ^8.5CI passing

Since Mar 29Pushed 1mo agoCompare

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

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

ez-php/opcache
==============

[](#ez-phpopcache)

OPcache preload script generator for the ez-php framework.

Scans configured class directories and generates a ready-to-use `preload.php` that can be referenced by PHP's `opcache.preload` ini directive. Preloading compiles framework classes into shared memory at server startup, eliminating per-request file I/O and compilation overhead.

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

[](#installation)

```
composer require ez-php/opcache
```

Registration
------------

[](#registration)

Add the service provider in `provider/modules.php`:

```
$app->register(\EzPhp\OPCache\PreloaderServiceProvider::class);
```

Configuration
-------------

[](#configuration)

Add `config/opcache.php`:

```
