Composer cannot find ext-mbstring even if it is installed

When I try to install Laravel 5, I get a dependency error. I am using Uniform Server on Windows 7. I have enabled php_mbstring.dll and I have verified that it loads correctly. (I think)

Here is the console output (Composer):

Composer dependency error when installing laravel 5

Here are the extensions in my php.ini Php.ini extensions

The following is information about phpinfo () mbstring: mbstring installed

I don’t know where to go from here. Any idea?

+7
windows php laravel composer-php mbstring
source share
1 answer

Please note that on both Windows and Linux, PHP can work with configuration files with multiple php.ini files .

In the general case, when you find such a problem, you need to double check that the downloaded configuration file is the same as the one you are editing, or you need to find the correct path and add the extension also to the right of the php.ini configuration file.

When you run the script through the web server, you can find the configuration file using the function

phpinfo(); 

and checking the line "Loaded configuration file" (or just find php.ini) PHP Info Screenshot

Regarding the CLI you can run in CMD

 php --ini 

and check the first lines to find the value of the loaded configuration file.

0
source share

All Articles