infolaverage / symfony-custom
The "Symfony Standard Edition" distribution
Requires
- php: >=5.3.3
- doctrine/doctrine-bundle: ~1.2
- doctrine/orm: ~2.2,>=2.2.3
- friendsofsymfony/jsrouting-bundle: ~2.0
- friendsofsymfony/user-bundle: ~2.0
- incenteev/composer-parameter-handler: ~2.0
- sensio/distribution-bundle: ~2.3
- sensio/framework-extra-bundle: ~2.3
- sensio/generator-bundle: ~2.3
- stof/doctrine-extensions-bundle: ~1.1
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/swiftmailer-bundle: ~2.3
- symfony/symfony: ~2.4
- twig/extensions: ~1.0
- 2.4.x-dev
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.4.0-RC1
- v2.4.0-BETA2
- v2.4.0-BETA1
- 2.3.x-dev
- v2.3.9
- v2.3.8
- v2.3.7
- v2.3.6
- v2.3.5
- v2.3.4
- v2.3.3
- v2.3.2
- v2.3.1
- v2.3.0
- 2.2.x-dev
- v2.2.11
- v2.2.10
- v2.2.9
- v2.2.8
- v2.2.6
- v2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- 2.1.x-dev
- v2.1.13
- v2.1.11
- v2.1.10
- v2.1.9
- v2.1.8
- v2.1.7
- v2.1.6
- v2.1.5
- v2.1.4
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- dev-master / 1.0.x-dev
This package is not auto-updated.
Last update: 2024-11-05 05:54:45 UTC
README
Welcome to the Symfony Standard Edition - a fully-functional Symfony2 application that you can use as the skeleton for your new applications.
This document contains information on how to download, install, and start using Symfony. For a more detailed explanation, see the Installation chapter of the Symfony Documentation.
- Installing the Standard Edition
When it comes to installing the Symfony Standard Edition, you have the following options.
Use Composer (recommended)
As Symfony uses Composer to manage its dependencies, the recommended way to create a new project is to use it.
If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:
curl -s http://getcomposer.org/installer | php
Then, use the create-project
command to generate a new Symfony application:
php composer.phar create-project infolaverage/symfony-custom path/to/install
Composer will install Symfony and all its dependencies under the
path/to/install
directory.
Download an Archive File
To quickly test Symfony, you can also download an archive of the Standard Edition and unpack it somewhere under your web server root directory.
If you downloaded an archive "without vendors", you also need to install all the necessary dependencies. Download composer (see above) and run the following command:
php composer.phar install
- Checking your System Configuration
Before starting coding, make sure that your local system is properly configured for Symfony.
Execute the check.php
script from the command line:
php app/check.php
The script returns a status code of 0
if all mandatory requirements are met,
1
otherwise.
Access the config.php
script from a browser:
http://localhost/path-to-project/web/config.php
If you get any warnings or recommendations, fix them before moving on.
- Getting started with Symfony
This distribution is meant to be the starting point for your Symfony applications, but it also contains some sample code that you can learn from and play with.
A great way to start learning Symfony is via the Quick Tour, which will take you through all the basic features of Symfony2.
Once you're feeling good, you can move onto reading the official Symfony2 book.
What's inside?
The InfoLaverage Symfony Custom Edition is configured with the following defaults:
-
Twig is the only configured template engine;
-
Doctrine ORM/DBAL is configured;
-
Swiftmailer is configured;
-
Annotations for everything are enabled.
It comes pre-configured with the following bundles:
-
FrameworkBundle - The core Symfony framework bundle
-
SensioFrameworkExtraBundle - Adds several enhancements, including template and routing annotation capability
-
DoctrineBundle - Adds support for the Doctrine ORM
-
TwigBundle - Adds support for the Twig templating engine
-
SecurityBundle - Adds security by integrating Symfony's security component
-
SwiftmailerBundle - Adds support for Swiftmailer, a library for sending emails
-
MonologBundle - Adds support for Monolog, a logging library
-
AsseticBundle - Adds support for Assetic, an asset processing library
-
FOSUserBundle - Adds support for easier and quicker user management
-
FOSJsRoutingBundle - Adds support for exposing routing in JavaScript code
-
StofDoctrineExtensionsBundle - Integrates DoctrineExtensions to the project, which implements several useful behaviors for Doctrine.
-
WebProfilerBundle (in dev/test env) - Adds profiling functionality and the web debug toolbar
-
SensioDistributionBundle (in dev/test env) - Adds functionality for configuring and working with Symfony distributions
-
SensioGeneratorBundle (in dev/test env) - Adds code generation capabilities
All libraries and bundles included in the Symfony Standard Edition are released under the MIT or BSD license.
Before using FOSUserBundle, you need to create a custom user class extending the base user class provided by the pre-installed FOSUserBundle. To create it, please consult this documentation! Also, you will need to set the "fos_user.user_class" to your user class's fully-qualified class name in your config.yml.
Enjoy!