Skip to content

smatejic/micro-symfony

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro-Symfony

Silex is a micro but it is not Symfony.

Running Symfony as micro-service is exactly what i wanted.

##Symfony implementation Micro-Symfony distribution inspired by:

##Installation

  • Cloning the project:
git clone https://github.com/smatejic/micro-symfony.git
  • Install dependencies
composer install

rename .env.example to .env

mv .env.example .env

At this point there are 2 ways to run the server.

if you decide to use default php built in server and not use Symfony console to start it you can go to web folder

cd web
php -S localhost:8000

Or you can use Symfony console to start but in that case please make a copy of app.php and rename to app_dev.php that is located in web folder

cp app.php app_dev.php

After this you can run Micro-Syfmony as usual with app/console server:run

php bin/console server:run

To change from dev to prod just edit .env file

I also got a question about missing .env variables so please check your php.ini that it has variables_order = "GPCS"

line to

variables_order = "EGPCS"

About

Symfony as micro-service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published