Silex Full Skeleton
In this repo You can find
-
Console app
-
Migrations
-
Environments
All console commands should be done in root directory.
At First You need initialize env with which You will work. In console run command:
php init.php run:env dev
This will run env dev, you can run other one, for example prod or create your own env like stage and run it.
In ./console/commands
is created FirstCommand.php
as example.
In console run command
php console.php run:first-command Silex
Enjoy ;)