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. sergiusd/composer-warmup

ActiveComposer-plugin

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 2d 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 49% 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

3117d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e9512edf7124327a932b962c755552457ec3771e0d6f9bfdeb450e4469255d76?d=identicon)[sergiusd](/maintainers/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

[humbug/box

Fast, zero config application bundler with PHARs.

1.3k801.5k69](/packages/humbug-box)[laravel/pennant

A simple, lightweight library for managing feature flags.

57311.1M53](/packages/laravel-pennant)[api-platform/symfony

Symfony API Platform integration

323.2M67](/packages/api-platform-symfony)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[drevops/git-artifact

Package artifact from your codebase in CI and push it to a separate git repo.

2133.2k](/packages/drevops-git-artifact)

PHPackages © 2026

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