Tutorial by Examples

You must add php to your path environment variable. Follow theses steps : Windows 7 : Right-click on a My Computer icon Click Properties Click Advanced system settings from the left nav Click Advanced tab Click Environment Variables button In the System Variables section, select Path (case-...
Once the Symfony Installer is available, create your first Symfony application with the new command: # Linux, Mac OS X $ symfony new my_project_name # Windows c:\> cd projects/ c:\projects\> php symfony new my_project_name This command can be run from anywhere, not necessarily from t...
The installer requires PHP 5.4 or higher. If you still use the legacy PHP 5.3 version, you cannot use the Symfony Installer. Read the Creating Symfony Applications without the Installer section to learn how to proceed. - source: http://symfony.com/doc/current/book/installation.html
In case your project needs to be based on a specific Symfony version, use the optional second argument of the new command: # use the most recent version in any Symfony branch $ symfony new my_project_name 2.8 $ symfony new my_project_name 3.1 # use a specific Symfony version $ symfony new my_...
Open your command console and execute the following commands: $ sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony $ sudo chmod a+x /usr/local/bin/symfony
Install symfony correctly as guided above. Start symfony server if you are not installed in www directory. Ensure http://localhost:8000 is working if symfony server is used. Now it is ready to play with simplest example. Add following code in a new file /src/AppBundle/Controller/MyController.p...
Before continuing, make sure you've read the Installation chapter and can access your new Symfony app in the browser. Suppose you want to create a page - /lucky/number - that generates a lucky (well, random) number and prints it. To do that, create a "Controller class" and a "con...

Page 1 of 1