I have followed the instructions to install symfony from the official page but when entering the command: php -r "file_put_contents('symfony', file_get_contents('https://symfony.com/installer'));"
it gives me the following error:
PHP Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1 PHP Warning: file_get_contents(h ttps://symfony.com/installer): failed to open stream: Invalid argument in Command line code on line 1
Warning: file_get_contents(ht tps://symfony.com/installer): failed to open stream: Invalid argument in Command line code on line 1
Better install composer and from it you generate the new projects!
Download it and install it! https://getcomposer.org/Composer-Setup.exe
Then from the terminal you go to the folder where you want to create the new project:
Ex: C:\xampp\htdocs
And 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 install, if you do not put a version, it will install the latest stable one (currently).
I hope it helps you.
For more info:
https://symfony.com/doc/current/setup.html -> search for: 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.
https://diego.com.es/certificacion-symfony
To enjoy!!!
The problem you are having is that you do not have the ssl module enabled so that you can make https requests from php. Since you don't have the module enabled, it returns an error when trying to make the request. What is wrong is the
You have to enable it in the php.ini you are using.
If you are using XAMPP uncomment the line (delete the ; )
in
and restart apache