Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

composer-warmup

> 编程语言
Open source

OpCode Warmer (composer plugin) Optimize your application by warming up OpCode. Requirements - PHP =7.0 - Zend extension Opcache - extensio…

179 stars0 likes1 views
WebsiteGitHub

About

OpCode Warmer (composer plugin) Optimize your application by warming up OpCode. Requirements - PHP =7.0 - Zend extension Opcache - extensio…

OpCode Warmer (composer plugin)

Optimize your application by warming up OpCode.

Requirements

  • PHP >=7.0
  • Zend extension Opcache
  • extension Sockets
  • composer >=1.0.0

Install

bash
$ composer global require "jderusse/composer-warmup"

Configure

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

; recommended
opcache.file_update_protection=0

Usage

bash
$ cd my-project
$ composer warmup-opcode

How does it work?

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

This plugin adds the warmup-opcode command to composer which triggers the compilation for every PHP file discovered in the project.

When you start the application for the first time, PHP doesn't need to compile the files, which improve performance.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

PHP

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言