comely-io / cli
CLI utility for Comely Apps
Installs: 1 521
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- comely-io/filesystem: ^2.0.0
- comely-io/utils: ^2.0.3
This package is auto-updated.
Last update: 2024-10-29 05:34:49 UTC
README
CLI component for Comely Apps
Requirements
- PHP ^8.0
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