Cli for CodeIgniter 3.0 |
I'm developing "Cli for CodeIgniter" which is a Cli tool for CodeIgniter 3.0.
https://github.com/kenjis/codeigniter-cli You can create your own commands. And it has commands to manipulate database migrations via command line. For example: Code: bash-3.2$ ./cli help migrate Check it, if you like command line: https://github.com/kenjis/codeigniter-cli (05-05-2015, 02:13 PM)orionstar Wrote: Is it works with wiredezign's HMVC addon? Is there a way to create commands/seeders anywhere I want? (for example.: application/modules/users/commands/AddUserCommand) I'm not sure. It does not support HMVC. Maybe needs some customization. In migration, it uses CI's Migration class: https://github.com/kenjis/codeigniter-cl...te.php#L53 Your command and seeder path is defined in config/ folder. command path: https://github.com/kenjis/codeigniter-cl...on.php#L44 seeder path: https://github.com/kenjis/codeigniter-cl...on.php#L40
I changed. "commpand path" is array now:
https://github.com/kenjis/codeigniter-cl...on.php#L49
Thanks to a contributor, ftwbzhao, now Cli for CodeIgniter supports generation of Sequential migration file.
https://github.com/kenjis/codeigniter-cli
(05-21-2015, 02:52 AM)kenjis Wrote: Thanks to a contributor, ftwbzhao, now Cli for CodeIgniter supports generation of Sequential migration file. Hi I am also porting CLI from Laravel 5. I am half the way done I am not sure how we can combine our work ? Here are examples of my CLI [code]# Generate blank Migration php codeigniter make:migration create_user_table # Generate migration to create Table php codeigniter make:migration create_user_table --table=user # Generate migration to Update table php codeigniter make:migration add_new_user --create=user # Run current migration php codeigniter migrate # Rollback current migration php codeigniter migrate:rollback # Rollback all migrations php codeigniter migrate:reset
I've just released v0.1.0.
https://github.com/kenjis/codeigniter-cli/releases (05-25-2015, 05:14 PM)yousafsyed Wrote: Hi I am also porting CLI from Laravel 5. I am half the way done I am not sure how we can combine our work ? Here are examples of my CLI I didn't port from Laravel. I saw some other implementations for codeigniter. I don't create generator for real code like creating or modifying database table and/or MVC. If you release your code, I could reuse some of them. |
Welcome Guest, Not a member yet? Register Sign In |