cfv1000 / phalcon-cli-boilerplate
A phalcon boilerplate for CLI tools
v1.0.0
2018-10-15 17:34 UTC
Requires
- php: ~7.1
- ext-phalcon: ~3.3
Requires (Dev)
- phalcon/ide-stubs: ^3.4
This package is auto-updated.
Last update: 2025-02-27 07:17:50 UTC
README
Features
- working examples of usage
- easy and clear to setup
- handler for missing command
- custom DI example
example of usage
php bin/phalcon invalid:task --option --param=value
- this will trigger the default task. No registered task with given name
php bin/phalcon task --param=value -option
- example of registered task (no namespace)
php bin/phalcon ns:task --param=value -option
- example of registered task with namespace
Requirements
- php 7
- phalcon extension for php
Note: On Ubuntu, this can be run like ./bin/phalcon command --args