Возможные ошибки при установке Slim 4 на Windows



Ошибка: 

The openssl extension is required for SSL/TLS protection but is not available.

Решение:

Добавить в composer.json следующие строки: 

{
   "config": {
       "disable-tls": true
   },
   "repositories": {
       "packagist": {
           "type": "composer",
           "url": "http://repo.packagist.org" 
       }
   }
}


 

При установке php-di в Slim4 через composer

Ошибка: 

php-di/php-di[6.3.0, ..., 6.3.4] require psr/container ^1.0 -> found psr/container[1.0.0, 1.1.0, 1.1.1] but the package is fixed to 2.0.1 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- Root composer.json requires php-di/php-di ^6.3 -> satisfiable by php-di/php-di[6.3.0, ..., 6.3.4].

 

Решение: 

composer require php-di/php-di -W

 

 






comments powered by Disqus