chiron / app-cli
Chiron Skeleton Console Application
Fund package maintenance!
ncou
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^7.2
- chiron/chiron: ^3.9
- chiron/debug: ^1.0
Requires (Dev)
- chiron/container: ^3.4
- phpstan/phpstan: ^0.12.0
- phpunit/phpunit: ^8.0
README
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project template using the following command:
$ composer create-project chiron/app-cli [my-app-name]
Replace [my-app-name] with the desired directory name for your new application.
Cloning
This section applies only if you cloned this repo with
git clone
, not when installed withcomposer create-project ...
.
Make sure to properly install composer dependencies if you cloned the existing repository.
$ composer install # Install the projet composer dependencies
Command Line
To start application console execute:
$ php app.php quote
This will generate a random quote from Terry Pratchett books. Read more about the quotes here.
Testing
To test an application:
$ ./vendor/bin/phpunit
or
$ composer phpunit
License
This package is open-sourced software licensed under the MIT license.