Command to install Symfony 3 on Windows

0

When I'm going to download and install Symfony with the following console command:

php -r "readfile('http://symfony.com/installer');" > symfony

... I get the following error:

  

php_network_getaddresses: getaddrinfo failed: Unknown host. failed to open stream: php_network_getaddresses: getaddrinfo failed: Unknown host.

Why is this happening and how do I solve it?

    
asked by Yanmichel 15.05.2017 в 20:43
source

2 answers

2

Better install composer and from it you generate new projects!

Download it and install it! link

Then from the terminal you go to the folder where you want to create the new project:

Ex: C: \ xampp \ htdocs

And already being in the folder where you want to create the project, you use:

composer create-project symfony / framework-standard-edition my_project_name "2.8. *"

What is in the double quotes is the version to be installed, if not, you will install the latest stable version (currently).

I hope it serves you.

For more info:

link - > Search: Creating Symfony Applications with Composer

And if you want to go deeper, this man has translated all the documentation into Spanish to prepare for the certification.

link

To enjoy !!!

    
answered by 04.09.2017 в 22:41
1

This problem usually happens because it is done from the Windows console without everything necessary.

I recommend installing first git and then laragon (which is a web server)

I recommend laragon because it has a terminal from where you can directly install symfony or run these commands without problems.

Today I just made a small demo and in 5 minutes I had installed Symfony 3.2.8 and created the friendly route in my case

http://picoyplaca.dev
http://picoyplaca.dev/app_dev.php/

Peak and plate is the name of the app you can put what you think is convenient.

Greetings

    
answered by 24.05.2017 в 07:45