System win10, PHP version 5.6.25, download Composer-Setup.exe to install, the prompt is as follows. PHP has enabled OpenSSL, PDO, mbstring, tokenizer, xml, how to solve this situation?
人生最曼妙的風(fēng)景,竟是內(nèi)心的淡定與從容!
extension_dir is not configured correctly, just change it
extension_dir is a configuration item in php.ini, just change it to the absolute path of your ext directory
-----------------------------An easier way------------- ------------------
composer.phar is actually a Php script, you can actually download it yourself
php added to environment variables
Download composer.phar(Address: https://getcomposer.org/composer.phar
),將文件放進(jìn)PHP目錄下,并且新建文本文件 composer.cmd
,內(nèi)容:@php "%~dp0composer.phar" %*
.
composer --version Check the composer version to confirm whether the command can be executed. If so, it’s ok