macfja / phar-builder
0.2.8
2018-11-01 18:36 UTC
Requires
- php: >=5.4.0
- league/event: ^2.1
- macfja/symfony-console-filechooser: ~0.2 || ~1
- neutron/signal-handler: ^1.0
- rych/bytesize: ~1.0
- symfony/console: ~2.7 || ^3.0 || ^4.0
- symfony/finder: ^4.0
- symfony/process: ^2.7 || ^3.0 || ^4.0
- webignition/readable-duration: ^0.2
Requires (Dev)
- phpmd/phpmd: ^2.4
- sebastian/phpcpd: ^2.0
- squizlabs/php_codesniffer: ^2.5
This package is auto-updated.
Last update: 2024-09-11 01:57:36 UTC
README
创建基于Composer的PHP应用程序的Phar(PHp ARchive)文件
安装
Composer
composer require macfja/phar-builder
Phar存档
您可以直接在GitHub的发布部分下载Phar(https://github.com/MacFJA/PharBuilder)
使用方法
在基于Composer的项目中
vendor/bin/phar-builder
使用Phar
phar-builder.phar package path-to-your-composer.json-file
命令 package
从命令 vendor/bin/phar-builder help package
的输出中提取
Description:
Generate a Phar from a composer.json
Usage:
package [options] [--] [<composer-json>]
Arguments:
composer-json The path to the composer.json file.
If the argument is not defined, search of a composer.json inside the current directory
Options:
--output=OUTPUT Where to output the Phar
--name=NAME The name of the Phar
--no-dev Do not include dev dependencies
--dev Include dev dependencies
--no-shebang Do not add/remove shebang
--shebang Ensure that a shebang is used
--entry-point=ENTRY-POINT The file to include when the Phar is executed/called
--included=INCLUDED The list (separate by ",") of path to add in the Phar
--excluded=EXCLUDED The list (separate by ",") of path to exclude in the Phar
--bz2 Use the BZip2 compression for the Phar
--gzip Use the GZip compression for the Phar
--flat Do not compress the Phar
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
类似项目
- https://github.com/clue/phar-composer
- https://github.com/box-project/box2
- https://github.com/IcecaveStudios/near
- https://github.com/Modularr/Phar
- https://github.com/kos33rd/pharaon
- https://github.com/brad-jones/pharbuilder
- https://github.com/index0h/yii2-phar
- https://github.com/keradus/PharBuilder
- https://github.com/JeroenDeDauw/PharBuilder
- https://github.com/theseer/Autoload
- https://github.com/crodas/Phar-Builder
- https://github.com/oleics/php-ac-build-phar
- https://github.com/mvccore/packager
- https://github.com/box-project/box2-lib
- https://github.com/humbug/box
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。