Download the PHP package evaneos/silex-rest-skeleton without Composer
On this page you can find all versions of the php package evaneos/silex-rest-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package silex-rest-skeleton
Silex REST Skeleton
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:
-
Setup git
$>composer git-setup [email protected]:<vendor-name>/<project-name>
You can see all remote via git remote -v
origin target you application repository and upstream the silex skeleton project
-
Setup the env for docker
- In
infrastructure/environment/dev/php/config
, create yourblackfire-agent.env
file fromblackfire-agent.env.tpl
to set your blackfire conf. - In
infrastructure/environment/dev/tunnel
, create yourdb.env
file fromdb.env.tpl
to set your ssh tunnel to the DB machine. - Build the docker images:
- Go to
infrastructure/dockerfiles
directory - Type the following command $>
make build
- Run your docker containers:
- Go to
infrastructure/environment\dev
directory - Type the following command $>
docker-compose up -d
- To kill your docker containers:
- Go to
infrastructure/environment\dev
directory - Type the following command $>
docker-compose kill
- Type the following command $>
docker-compose rm -f
- In
-
Setup and run your app
- In
config
, create yourconfig.yml
file to setup your app - To access your app via http (if your docker containers are running):
- Type the following command $>
docker ps | grep rest-api-nginx
and look for the port in the filed looking like this:0.0.0.0:<your-port>->80tcp
- Your app is now accessible at
http://<your-machine-ip>:<your-port>/
- In
-
Start coding
- Put your domain code in
src
- All the app code will go in
app
- Your new Controllers will go in
app/API/Controllers
and will be declared in a ServiceProvider - ControllerProviders will go in
app/API/ControllerProviders
and will be declared in a ServiceProvider - Your routes will be mounted through ControllerProviders in
app/Application::mountRoutes
- Your API resources will go in
app/API/Resources
- Your parameters converters will go in
app/API/Converters
and will be delcared inapp/ServiceProviders/RestAPIServiceProvider
or in a new ServiceProvider - Your ServiceProviders will go in
app/ServiceProviders
- Your Domain services will be declared in a new ServiceProvider and registered in
app/Application::addDomainServices
or be registered there directly
- Put your domain code in
-
Console
At the directory root, you'll find a file named
console
which will let you launch commands
To add a command:
- Create it in
app/Commands
- Add its declaration in
app/ServiceProviders/CommandsServiceProvider
or add a new one - Add the command to the application in
app/Application::bootCLI
All versions of silex-rest-skeleton with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.5.9
silex/silex Version ^2.0
doctrine/orm Version ^2.5
dflydev/doctrine-orm-service-provider Version ^2.0
firebase/php-jwt Version ^3.0
symfony/security Version ^3.0
jms/serializer Version ^1.1.0
willdurand/hateoas Version ^2.8
pagerfanta/pagerfanta Version ^1.0
hautelook/templated-uri-router Version ^2.0
symfony/validator Version ^2.1
reva2/config-service-provider Version ^2.0
monolog/monolog Version ^1.17
symfony/yaml Version ^3.0
incenteev/composer-parameter-handler Version ~2.0
symfony/polyfill-php55 Version ~1.0
evaneos/silex-jwt-provider Version ^2.0
ramsey/uuid Version ^3.4
silex/silex Version ^2.0
doctrine/orm Version ^2.5
dflydev/doctrine-orm-service-provider Version ^2.0
firebase/php-jwt Version ^3.0
symfony/security Version ^3.0
jms/serializer Version ^1.1.0
willdurand/hateoas Version ^2.8
pagerfanta/pagerfanta Version ^1.0
hautelook/templated-uri-router Version ^2.0
symfony/validator Version ^2.1
reva2/config-service-provider Version ^2.0
monolog/monolog Version ^1.17
symfony/yaml Version ^3.0
incenteev/composer-parameter-handler Version ~2.0
symfony/polyfill-php55 Version ~1.0
evaneos/silex-jwt-provider Version ^2.0
ramsey/uuid Version ^3.4
The package evaneos/silex-rest-skeleton contains the following files
Loading the files please wait ....