Symfony-The leading PHP framework to create websites and web applications. Built on top of the Symfony Components. Installation of symfony is slightly different from PHP's other frameworks. I will explain you step by step on how to set up your first Symfony application running in your windows PC.
1) Firstly make sure that curl is installed in your computer. If not then download it from here
Then Extract the folder & copy all the contents & paste it into the C:/Windows/System32 Folder.
2) Now its time to install Symfony. First open the Command prompt (type run insearch.,In it type cmd & press enter). Open it in administrator mode.
3) In the command prompt window just type
2) Now symfony installation file will be automatically downloaded into your system.Now its time to move the downloded file to the working folder. For this type in the cmd like shown below , second argument will be location of the project. After that enter into the directory By typing cd & then executing PHP command.
3) Now its time to create the application. Now enter into the directory type the following command
php new my_project
4) To run the application, Enter into the project folder from cmd & then type
php app/console server:run
5) The inorder to view our application go to the browser & type
localhost:8000/
6) To stop the application run,type following in the cmd
php app/console server;stop
1) Firstly make sure that curl is installed in your computer. If not then download it from here
Then Extract the folder & copy all the contents & paste it into the C:/Windows/System32 Folder.
2) Now its time to install Symfony. First open the Command prompt (type run insearch.,In it type cmd & press enter). Open it in administrator mode.
3) In the command prompt window just type
php -r "readfile('https://symfony.com/installer');" > symfony
2) Now symfony installation file will be automatically downloaded into your system.Now its time to move the downloded file to the working folder. For this type in the cmd like shown below , second argument will be location of the project. After that enter into the directory By typing cd & then executing PHP command.
3) Now its time to create the application. Now enter into the directory type the following command
php new my_project
4) To run the application, Enter into the project folder from cmd & then type
php app/console server:run
5) The inorder to view our application go to the browser & type
localhost:8000/
6) To stop the application run,type following in the cmd
php app/console server;stop
c:\> move symfony c:\wamp\www\myapps\
c:\> cd wamp
c:\wamp> cd www
c:\wamp\www>cd myapps
c:\wamp\www\myapps\> php symfony
c:\wamp\www\myapps\> php new my_project_name /* project will be created*/
c:\wamp\www\myapps\> cd my_project_name /*Navigate to project Directory */
c:\wamp\www\myapps\my_project_name\> php app/console server:run /* Running the application */
No comments:
Post a Comment