Download the PHP package gns/symfony-rest-api-template without Composer
On this page you can find all versions of the php package gns/symfony-rest-api-template. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gns/symfony-rest-api-template
More information about gns/symfony-rest-api-template
Files in gns/symfony-rest-api-template
Package symfony-rest-api-template
Short Description A symfony 4.4 + docker compose project template to make creating new REST API projects easier.
License MIT
Homepage https://github.com/gns-it/symfony-rest-api-template
Informations about the package symfony-rest-api-template
Docker Symfony 4 (PHP7-FPM - NGINX - MySQL)
Installation
-
Create a
.env
from the.env.dist
file. Adapt it according to your symfony application -
Build/run containers with (with and without detached mode)
-
Update your system host file (add honey_moon.local)
-
Set $SYMFONY_APP_PATH (inside .env full path to symfony dir)
-
Prepare Symfony app
5.1. Composer install & create database
- Enjoy :-)
Useful commands
-
Build assembly
docker-compose build
-
Run assembly
docker-compose up -d
-
Run assembly except node container
docker-compose run --rm start_dependencies
-
Stop assembly
docker-compose stop
-
To enter php container
$docker-compose exec php bash
sf
alias configured forphp bin/console
-
Run supervisor:
supervisord -c /etc/supervisor/conf.d/private_island.conf
- Stop supervisor:
kill -s SIGTERM "$(< /tmp/supervisord.pid)"