PHP Code compiler - Phar executable compiling utility
phporpaw7.1+phar.readonlyphp config directive must be set toOff
Get the latest release from Github
💡
${BINDIR}may be /usr/bin, /usr/local/bin or $HOME/bin
curl -Lo ${BINDIR}/phpcc https://github.com/yannoff/phpcc/releases/latest/download/phpccAdd execution permissions to the binary
chmod +x ${BINDIR}/phpccphpcc --help
phpcc --version
phpcc -e <entrypoint> -o <output> [-d dir [-d dir ...]] [-b <banner>] [-l <license>]
The output and entrypoint scripts are mandatory.
MANDATORY The main application entrypoint script.
MANDATORY The Phar archive output file.
Adds a PHP sources directory to the archive.
Multiple values allowed here
Each directory may be of the form:
$dir=> include all files in directory$dir:$extension=> filter files on a specific extension
Filepath to the legal notice banner.
Will be included in the human-readable part of the stub.
phpcc -d src:php -d vendor:php -e bin/compile.php -o bin/phpcc -b .bannerMore use cases can be found in the examples documentation.
Licensed under the MIT License.