You can create a new project using this skeleton by running the following command:
$>echo n | composer create-project evaneos/silex-rest-skeleton <your-project-name> -s dev
After that, you'll have to:
$>composer git-setup git@github.com:<vendor-name>/<project-name>
You can see all remote via git remote -v
origin target you application repository and upstream the silex skeleton project
infrastructure/environment/dev/php/config
, create your blackfire-agent.env
file from blackfire-agent.env.tpl
to set your blackfire conf.infrastructure/environment/dev/tunnel
, create your db.env
file from db.env.tpl
to set your ssh tunnel to the DB machine.infrastructure/dockerfiles
directorymake build
infrastructure/environment\dev
directorydocker-compose up -d
infrastructure/environment\dev
directorydocker-compose kill
docker-compose rm -f
config
, create your config.yml
file to setup your appdocker ps | grep rest-api-nginx
and look for the port in the filed looking like this: 0.0.0.0:<your-port>->80tcp
http://<your-machine-ip>:<your-port>/
src
app
app/API/Controllers
and will be declared in a ServiceProviderapp/API/ControllerProviders
and will be declared in a ServiceProviderapp/Application::mountRoutes
app/API/Resources
app/API/Converters
and will be delcared in app/ServiceProviders/RestAPIServiceProvider
or in a new ServiceProviderapp/ServiceProviders
app/Application::addDomainServices
or be registered there directlyAt the directory root, you'll find a file named console
which will let you launch commands
To add a command:
app/Commands
app/ServiceProviders/CommandsServiceProvider
or add a new oneapp/Application::bootCLI