Symfony Minimal Edition
1) Installing
Install composer:, (*1)
curl -s http://getcomposer.org/installer | php
Then, use the create-project
command to generate a new Symfony application:, (*2)
php composer.phar create-project henningm/symfony-minimal path/to/install
Composer will install Symfony and all its dependencies under the
path/to/install
directory., (*3)
2) Checking your System Configuration
Before starting coding, make sure that your local system is properly
configured for Symfony., (*4)
Execute the check.php
script from the command line:, (*5)
php app/check.php
The script returns a status code of 0
if all mandatory requirements are met,
1
otherwise., (*6)
Access the config.php
script from a browser:, (*7)
http://localhost/path/to/symfony/app/web/config.php
If you get any warnings or recommendations, fix them before moving on., (*8)
What's inside?
It comes pre-configured with the following bundles:, (*9)
-
FrameworkBundle - The core Symfony framework bundle, (*10)
-
SensioFrameworkExtraBundle - Adds several enhancements, including
template and routing annotation capability, (*11)
-
TwigBundle - Adds support for the Twig templating engine, (*12)
-
AsseticBundle - Adds support for Assetic, an asset processing
library, (*13)
-
WebProfilerBundle (in dev/test env) - Adds profiling functionality and
the web debug toolbar, (*14)
-
SensioDistributionBundle (in dev/test env) - Adds functionality for
configuring and working with Symfony distributions, (*15)
-
SensioGeneratorBundle (in dev/test env) - Adds code generation
capabilities, (*16)