Download the PHP package runcmf/runcli without Composer
On this page you can find all versions of the php package runcmf/runcli. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download runcmf/runcli
More information about runcmf/runcli
Files in runcmf/runcli
Package runcli
Short Description RunCli - Command Line Interface. [migrate, seed, generate migrations and seeds from existing database, create database, generate resources and much more :)]
License Apache 2
Informations about the package runcli
RunCli
Standalone command line interface.
migrate, seed, generate migrations, models and seeds from existing database, generate resources, create database
supported driver mysql, pgsql, sqlite
main objective was generate Eloquent ORM migrations from existing database outside Laravel in my case Eloquent ORM used with Slim 3 Framework
Install
- copy or
ln -s
cli to scripts_root/bin
Config:
script looking config in paths:
app/Config/Settings.php runcmf/runcmf-skeleton
app/settings.php akrabat/slim3-skeleton
config must contain ['settings']['db'] section. for example:
Usage:
Seed & Migrate
Generate migration from existing database:
redone from Xethron with part of code doctrine/dbal but without Laravel, way/generators
Generator info:
Know problems:
migrated to
with migrate exception:
solution 1: if you want use binary(16):
solution 2: refactor your code with ipAddress Eloquent ORM ipAddress
solution 3: http://stackoverflow.com/questions/17795517/laravel-4-saving-ip-address-to-model
Generate seeds from existing database:
redone from orangehill/iseed
Generate models from existing database:
redone from user11001/eloquent-model-generator
Create database
schema - OPTIONAL, schema name from config or exception generated on empty config value;
charset - OPTIONAL, default value [MySQL = utf8, PostgreSQL = UTF8];
collation - OPTIONAL, default value [MySQL = utf8_general_ci, PostgreSQL = en_US.UTF-8];
Tests
Security
If you discover any security related issues, please email to 1f7.wizard( at )gmail.com instead of using the issue tracker.
Credits
License
Apache License Version 2.0