jderusse/composer-warmup
There is no license information available for the latest version (1.5) of this package.
Maintainers
Package info
github.com/jderusse/composer-warmup
Type:composer-plugin
pkg:composer/jderusse/composer-warmup
1.5
2021-01-07 19:33 UTC
Requires
- php: ^7.0 || ^8.0
- composer-plugin-api: ^1.0 || ^2.0
- ext-sockets: *
- ext-zend-opcache: *
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
Unknown License 32b0e0279042a3c23431c4234e4d18fe69c0ced7
README
Optimize your application by warming up OpCode.
Requirements
Install
$ composer global require "jderusse/composer-warmup"
Configure
; /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
$ 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.
