qb/symfony-minimal-edition

1.0.1 2016-03-28 15:48 UTC

This package is not auto-updated.

Last update: 2024-04-19 16:47:08 UTC


README

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