Getting Started with symfony

The Sandbox

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


About

You are currently reading "Getting Started with symfony" which is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License license.

Tutorial Content

Master symfony

Be trained by SensioLabs experts (2 to 6 day sessions -- French or English).
trainings.sensiolabs.com

Books on symfony

Learn more about symfony with the official guides.
books.sensiolabs.com

L'audit Qualité par SensioLabs

200 points de contrôle de votre applicatif web.
audit.sensiolabs.com
symfony training
Be trained by symfony experts
Feb 21: Köln (Getting Started with Symfony2 - English)
Feb 27: Köln (Mastering Symfony2 - English)
Mar 05: Köln (Web Development with Symfony2 - Deutsch)
Mar 05: Montreal (Web Development with Symfony2 - English)
Mar 05: Montreal (Getting Started with Symfony2 - English)
and more...

Search


powered by google
You are currently browsing "Getting Started with symfony" in English for the 1.2 version - Switch to language:
Creative Commons License This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

If your goal is to give symfony a try for a few hours, keep reading this chapter as we will show you the fastest way to get you started. If you want to bootstrap a real world project, you can safely skip this chapter, and jump to the next one right away.

The fastest way to experiment with symfony is to install the symfony sandbox. The sandbox is a dead-easy-to-install pre-packaged symfony project, already configured with some sensible defaults. It is a great way to practice using symfony without the hassle of a proper installation that respects the web best practices.

As the sandbox is pre-configured to use SQLite as a database engine, you need to check that your PHP supports SQLite (see the Prerequisites chapter). You can also read the Configuring the Database section to learn how to change the database used by the sandbox.

You can download the symfony sandbox in .tgz or .zip format from the symfony installation page or at the following URLs:

http://www.symfony-project.org/get/sf_sandbox_1_2.tgz

http://www.symfony-project.org/get/sf_sandbox_1_2.zip

Un-archive the files somewhere under your web root directory, and you are done. Your symfony project is now accessible by requesting the web/index.php script from a browser.

Having all the symfony files under the web root directory is fine for testing symfony on your local computer, but is a really bad idea for a production server as it potentially makes all the internals of your application visible to end users.

You can now finish your installation by reading the Web Server Configuration and the Environments chapters.

As a sandbox is just a normal symfony project where some tasks have been executed for you and some configuration changed, it is quite easy to use it as a starting point for a new project. However, keep in mind that you will probably need to adapt the configuration; for instance changing the security related settings (see the configuration of XSS and CSRF later in this tutorial).

Symfony Installation »
« Prerequisites

Questions & Feedback

If you find a typo or an error, please register and open a ticket.

If you need support or have a technical question, please post to the official user mailing-list.