mrccnt / phar-skeleton
Phar skeleton application template
0.1.0
2016-07-24 23:19 UTC
Requires
- php: ^5.5 || ^7.0
- ext-phar: *
- symfony/console: ^3.0
Requires (Dev)
- composer/composer: ^1.2
- pear/http_request2: ^2.3
- phing/phing: ^2.14
- phpmd/phpmd: ^2.4
- squizlabs/php_codesniffer: ^2.6
This package is not auto-updated.
Last update: 2025-01-03 23:51:07 UTC
README
Skeleton for creating PHAR applications from scratch including testing, reporting and building.
Requirements
You need to modify your CLI php.ini
. Otherwise we will not be able to "write" phar packages.
phar.readonly=Off
Install, Build and Run
$ composer install
$ composer build
Use the phar
file:
$ php dist/phar-skeleton.phar
TODO: Do something
Use the deb
file:
$ sudo dpkg -i dist/phar-skeleton.deb
Preparing to unpack dist/phar-skeleton.deb ...
Unpacking phar-skeleton (1.0.0) ...
Setting up phar-skeleton (1.0.0) ...
$ phar-skeleton
TODO: Do something
$ which phar-skeleton
/usr/local/bin/phar-skeleton
$ sudo dpkg -r phar-skeleton
Removing phar-skeleton (1.0.0) ...
dpkg: warning: while removing phar-skeleton, directory '/usr/local/bin' not empty so not removed