kasumi / kotori-php-cli
A Command-Line-Interface tool for the PHP framework Kotori.php
dev-master
2017-08-12 12:39 UTC
This package is not auto-updated.
Last update: 2024-11-10 03:33:54 UTC
README
Just a simple CLI scffold tool for the PHP framework Kotori.php, you can use it for scaffolding Kotori.php projects.
Installation
Kotori.php CLI requires PHP(>=5.5) and composer installed on your environment.
$ composer global require kasumi/kotori-php-cli:dev-master
Make sure that you have added composer global vendor bin directory to your PATH.
Let's take Linux for example:
$ export PATH="$HOME/.composer/vendor/bin:$PATH"
Usage
$ kotori <command> [arg1] [arg2]...
Here are some examples:
# initialize a pure Kotori.php project $ kotori init $ kotori i vendor/name # modify config $ kotori config <set|set-array|remove|list|reset> # generate a pure controller/model named Hello $ kotori generate controller Hello $ kotori g model Hello # start a dev server on localhost:8000 $ kotori serve --port 8000 # import or export database $ kotori db export db_instance_name ./db.sql $ kotori db import db_instance_name ./db.sql
Other commands and detailed usage can be found by executing kotori help
command.
License
Apache v2