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 - https://www.apachefriends.org/download.html
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 http://symfony.com/download 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 https://getcomposer.org/download/ 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('https://getcomposer.org/installer');" | 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.
Download and install XAMPP - https://www.apachefriends.org/download.html
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 http://symfony.com/download 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 https://getcomposer.org/download/ 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('https://getcomposer.org/installer');" | 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.
nice one ! and still post many on symphony
ReplyDeleteGreat Article
DeleteCyber Security Projects for CSE Students
JavaScript Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
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:http://www.ehuub.com/login/ by selecting classification "GRAPHICS, DESIGN, AND MULTIMEDIA", thank you!
ReplyDeletethe best
ReplyDeleteThe author of this blog has given the content in a comprehensive and clear way. Thanks for sharing this info.
ReplyDeleteSpoken English Classes in Velachery
Spoken English in Velachery
Spoken English Classes in Tambaram
Spoken English Class in Chrompet
Spoken English Classes in OMR Chennai
Spoken English Classes in Navalur
Spoken English Class in Ambattur
Spoken English Class in Avadi
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
ReplyDeleteNew 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
ReplyDeleteA 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. https://www.apkmacpc.com/itools-crack/
ReplyDeleteIt's superior, however , check out material at the street address. https://freshapps.com/barcodescan/
ReplyDeleteAmazing Article, Really useful information to all So, I hope you will share more information to be check and share here.
ReplyDeleteInplant Training for cse
Inplant Training for IT
Inplant Training for ECE Students
Inplant Training for EEE Students
Inplant Training for Mechanical Students
Inplant Training for CIVIL Students
Inplant Training for Aeronautical Engineering Students
Inplant Training for ICE Students
Inplant Training for BIOMEDICAL Engineering Students
Inplant Training for BBA Students
Amazing Article, Really useful information to all So, I hope you will share more information to be check and share here.
ReplyDeleteJupyter Notebook
Jupyter Notebook Online
Jupyter Notebook Install
Automation Anywhere Tutorial
Rpa automation anywhere tutorial pdf
Automation anywhere Tutorial for beginners
Kivy Python
Kivy Tutorial
Kivy for Python
Kivy Installation on Windows
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.
ReplyDeletemason 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
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
ReplyDelete