百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

composer-warmup

> 编程语言
开源

OpCode Warmer (composer 插件) 通过预热 OpCode 来优化您的应用程序。 要求 - PHP =7.0 - Zend 扩展 Opcache - 扩展 Zend_OpCache

179 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

OpCode Warmer (composer 插件) 通过预热 OpCode 来优化您的应用程序。 要求 - PHP =7.0 - Zend 扩展 Opcache - 扩展 Zend_OpCache

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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHP

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

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