Caution: You are browsing the legacy symfony 1.x part of this website.
Appendix A - The Sandbox
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 should jump to
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
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:
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.
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 in this tutorial).
This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License license.