Technology Blog





Wednesday, May 28, 2014

Tutorial on install, setup and getting started in Symfony 2 PHP MVC framework with Hello World example on Windows

PHP is one of the widely used web development language, and Symfony is an Enterprise level PHP MVC framework. Here I am explaining the steps for getting started with Symfony in Windows with a 'Hello World' example in Symfony.

Download and install XAMPP -

After Installation is completed, Check whether it is working by starting Apache, MySQL in the XAMPP control panel.

The XAMPP folder will have the below folders. In this 'htdocs' will be the website directory.

Goto and download the latest standard edition without vendors.

Extract the downloaded archive and place the 'Symfony' folder in '<path>/xampp/htdocs/Symfony' as below.

Open command prompt and check whether php is executable by typing 'php -v' in cmd prompt.

If it is not added, Copy the '<path>/xampp/php' directory path and add it to the environment variables by going to 'My Computer -> Properties -> Advanced -> Environment Variables -> Path -> Edit'

Now execute 'php -v' in command prompt. It should display version number as given below.

To install composer, Go to and copy the highlighted line.

In command prompt, go to the location <path>/xampp/htdocs/Symfony and paste the copied line (given below) and enter.
php -r "readfile('');" | php

After composer is installd, there will be 'composer.phar' file downloaded in the 'Symfony' directory.

Now, go to <path>/xampp/php and open the php.ini file.

Uncomment the line extension=php_openssl.dll ( Simply remove the ; in the start of the line ) from the file to enable openssl.

Now Stop & Start the Apache so that the configuration changes take effect.

Now, go to <path>/xampp/htdocs/Symfony in command prompt and run the below command.
php composer.phar update
It will download the required packages for Symfony to run. The download library list will be present in composer.json file.

After the composer has run successfully, There will be a 'vendor' folder downloaded into the 'Symfony' folder. This will be having all the Symfony framework files.

No go to http://localhost/Symfony/web/app_dev.php
The symfony hello world demo will be running in the URL.


  1. nice one ! and still post many on symphony

  2. Share or Provide your details, styles, identifiable, 3d styles, performs of art, pictures, etc., generate income, and get used globally. Sign-up via e-mail or your team press issue here: by selecting classification "GRAPHICS, DESIGN, AND MULTIMEDIA", thank you!

  3. Introduced in upwards of 244 million sites and 2.1 million web servers, PHP server-side scripting language intended for web improvement was initially made by Rasmus Lerdorf in 1995. Top Expert Cakephp Developers

  4. New forms of PHP show up always with answers for bugs and with new highlights, however in a similar time they show up with new bugs which don't have an answer until the point when another rendition is discharged and this can be truly disappointing.Why use Laravel

  5. A patent presents on the proprietor a flat out imposing business model which is the option to keep others from making, utilizing, offering available to be purchased without his/her assent.

  6. It's superior, however , check out material at the street address.

  7. best buy smart watch professional in R&D wearable blood pressure monitor, in the innovative form of a wrist watch, proactively monitors your heart health by turning real-time heart data into heart.
    mason jar lids canning lids supplier. offer canning Lids in different style and size
    Cervical spine massager We aim to create a healthy lifestyle that assists every individual to de-stress, relax. unwind and streamline a pain-free life and at the same time feel and look amazing.
    sex machine for sale Choose Sex Machine to Get Orgasm and Enjoy Life
    moving dildo Enjoy sexual life for both men and women
    neon light for roomNeon Signs Light Is One-of-a-Kind Activities Designed and Hosted by Expert Locals. All Experiences are Vetted for Quality.
    dog training collarsPets Supplier mall offers the ultimate pet shop experience. We have all the pet supplies, pet food, toys and accessories you and your pet needs at great prices. Find all the best pets suppliers coupons, promotion.
    novelty giftsDiscover the latest and most interesting gadgets at a bargain price
    Car decorationHere you will find the latest and most fashionable car accessories

  8. Get Oracle training in Chennai. One of the booming industries is Oracle. It has an erasable place in the IT industry. More than 70% of students choose oracle for their career and All the 70% are shining with a good salary package this the power of the Oracle.Best Oracle Training in Chennai | Infycle Technologies