PHPackages                             sergiusd/composer-warmup - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sergiusd/composer-warmup

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

sergiusd/composer-warmup
========================

1.2.1(8y ago)015PHPPHP &gt;=7.0

Since Jun 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sergiusd/composer-warmup)[ Packagist](https://packagist.org/packages/sergiusd/composer-warmup)[ RSS](/packages/sergiusd-composer-warmup/feed)WikiDiscussions master Synced 2w ago

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

OpCode Warmer (composer plugin)
===============================

[](#opcode-warmer-composer-plugin)

Optimize your application by warmuping OpCode.

Requirements
------------

[](#requirements)

- PHP `>=7.0`
- Zend Opcache
- composer `>=1.0.0`

Install
-------

[](#install)

```
$ composer global require "sergiusd/composer-warmup"
```

Configure
---------

[](#configure)

```
; /etc/php/7.0/cli/conf.d/10-opcache.ini
zend_extension=opcache.so
opcache.enable_cli=1
opcache.file_cache='/tmp/opcache'

; recommanded
opcache.file_update_protection=0
opcache.validate_timestamps=0
```

Usage
-----

[](#usage)

```
$ cd my-project

# autoload classmap
$ composer warmup-opcode

# autoload classmap and extra path
$ composer warmup-opcode extra/path1 extra/path2

# extra path with extensions
$ composer warmup-opcode --ext=php --ext=phtml extra/path1 extra/path2
```

How does it work ?
------------------

[](#how-does-it-work-)

Since PHP 7.0, the OpCache extension is able to store the compiled OpCode into files.

This plugin add the `warmup-opcode` command to [composer](https://getcomposer.org/) which triggers the compilation for every PHP file discovered in the project.

When you start the application for the first time, PHP don't need to compile the files which improve performances, as you can see in this [blackfire comparison](https://blackfire.io/profiles/compare/a5e55813-de07-437c-9ddf-e8aefc6a8a81/graph).

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~171 days

Total

4

Last Release

3164d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2846248?v=4)[Sergei Demchuk](/maintainers/sergiusd)[@sergiusd](https://github.com/sergiusd)

---

Top Contributors

[![jderusse](https://avatars.githubusercontent.com/u/578547?v=4)](https://github.com/jderusse "jderusse (5 commits)")[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (2 commits)")[![theofidry](https://avatars.githubusercontent.com/u/5175937?v=4)](https://github.com/theofidry "theofidry (1 commits)")

### Embed Badge

![Health badge](/badges/sergiusd-composer-warmup/health.svg)

```
[![Health](https://phpackages.com/badges/sergiusd-composer-warmup/health.svg)](https://phpackages.com/packages/sergiusd-composer-warmup)
```

###  Alternatives

[symfony/runtime

Enables decoupling PHP applications from global state

74794.9M939](/packages/symfony-runtime)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17316.3M265](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9938.5M823](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751284.3k37](/packages/civicrm-civicrm-core)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5344.1M526](/packages/drupal-core-composer-scaffold)

PHPackages © 2026

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