Problems with Composer when creating laravel project

0

Hello Friends I try to make a project in laravel from composer but it gives me an error that the truth before never happened to me but now I do not know what happens. Thanks for the help.

    
asked by Dohko19 17.08.2018 в 23:40
source

2 answers

0

Good if the problem was the firewall of the antivirus that I had, to remove it let me download everything I had

    
answered by 23.08.2018 / 06:44
source
-1

The error can be caused by several factors

  • run the code inside the local server as xampp in that case htdocs or apache www and have it activated, since composer must identify the php version

  • check the php version since version 5.5 of laravel works better with php version 7.0.0 and version 5.6 works with php version 7.1.0, if you have version php 5.0 you have to install laravel 5.4

  • All you need to do is activate the openssl extension in your php.ini by removing the comment from the line

    ; extension=php_openssl.dll

    A

    extension=php_openssl.dll
    
  • Warning, there are usually 2 php.ini files, one in the apache \ bin folder and another in the \ php folder, edit the one in \ php \ php.injarpeta since this is the one that controls the PHP CLI.

        
    answered by 18.08.2018 в 00:58