comely-io / cli
CLI utility for Comely Apps
1.0.24
2019-12-23 00:22 UTC
Requires
- php: ^7.1
- comely-io/filesystem: ^1.0.12
- comely-io/utils: ^1.1.21
This package is auto-updated.
Last update: 2021-02-23 03:00:46 UTC
README
CLI component for Comely Apps
Requirements
- PHP >= 7.1
Installation
composer require comely-io/cli
Specification
- Script files in
bin
directory MUST BE named like snake_case - Script filenames MUST have
.php
extension - Script classes MUST BE named in snake_case
- Script classes MUST extend
Comely\CLI\Abstract_CLI_Script
class
Usage
- Install via composer (
composer require comely-io/cli
) - Copy contents of
dist
directory into your project - Make
console
file executable (chmod +x console
) - If needed, edit
console
file and set correct path to__bin.php
on line # 3 - If needed, edit
__bin.php
file and set correct path to composer autoload file