Skip to content

Minimally-functional Symfony application that you can use as the skeleton for your new applications.

License

Notifications You must be signed in to change notification settings

quentin-berlemont/qb-symfony-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Minimal Edition

This is the Symfony Minimal Edition - a minimally-functional Symfony application that you can use as the skeleton for your new applications.

The Symfony Minimal Edition uses the package vlucas/phpdotenv to add Twelve Factor app compatibility, simplyfing configuration. This allows to get rid of the different front controller files based on environment.

Add your application configuration to a .env file in the root of your project containing key-value pairs of environment variables :

SYMFONY_ENV=dev
SYMFONY_DEBUG=1
SYMFONY__SECRET=ThisTokenIsNotSoSecretChangeIt
SYMFONY__MONOLOG_ACTION_LEVEL=debug

Note: Symfony will grab any environment variable prefixed with SYMFONY__ and set it as a parameter in the service container. For details see How to Set external Parameters in the Service Container chapter of the Symfony Documentation.

What's inside?

The Symfony Minimal Edition is configured with the following defaults:

  • An AppBundle you can use to start coding;

  • Twig as the only configured template engine;

It comes pre-configured with the following bundles:

  • FrameworkBundle - The core Symfony framework bundle

  • TwigBundle - Adds support for the Twig templating engine

  • MonologBundle - Adds support for Monolog, a logging library

  • WebProfilerBundle (in dev/test env) - Adds profiling functionality and the web debug toolbar

  • DebugBundle (in dev/test env) - Adds Debug and VarDumper component integration

Installation

Use Composer to create a new application:

composer create-project qb/symfony-minimal-edition path/to/install "v1.0.1"

Credits

About

Minimally-functional Symfony application that you can use as the skeleton for your new applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published