I tried to install composer on windows 10, I opened the composer.exe and clicked next until I arrived to choose PHP command-line for it, so I selected php 7.0 from the dropdown menu and clicked next. then I faced with an error displaying in this screenshot.
please help me to solve this problem and tell me what should I do to install composer with PHP 7.0 command-line using.
use composer.phar
It's more comfy as it's portable solution
there was a file MSVCP140.dll missed from my PC that is required by php_intl.dll extension file.
I installed it on my windows then I restart my PC and installed Composer.exe without any errors :)
click here to learn how to install .dll files on windows.
Related
I want to use mongodb in laravel project. so I tried to install mongodb driver for php by running this command pecl install mongodb on cmd but I got this answer
No releases available for package "pecl.php.net/mongodb"
install failed
what should I do?
If you are on a windows machine, go to the official pecl website:
https://pecl.php.net/package/mongodb
then click on the DLL link for your version of choice.
On next page scroll down and download the one matching your PHP version.
Then you should extract the zip file and copy the php_mongodb.dll to your php/ext dir. Then open your php.ini and add the following line:
extension=php_mongodb.dll
This happened to me because for some minutes, the PECL repositories were not accessible. The error was happening both on CI an my local (both on Linux) and after some minutes, it got fixed without any action from my side.
I was also facing the same problem. You can just write the following line in your command line(This will work on Mac):
$ sudo pecl install mongodb
I've been trying to install Composer for a while now and still I could not figure out what I am doing wrong. First I installed WAMP Server 2.5(Windows 7 64-bit), then downloaded and run Composer-Setup.exe, installed shell Menus .
I chose this path
C:\wamp\bin\php\php5.5.12\php.exe
But once I clicked next I bumped into this:
Please review this settings PHP version 5.5.12
C:\wamp\bin\php\php5.5.12\php.exe.
Which settings should I use instead? When I try to run composer it does start but then shuts down immediately.
Im currently running Php MongoDb version 1.2.10 and I'm wanting to update this version to the most recent/stable.
How would one go about doing this? Im assuming it would be via terminal and using pear or pecl command?
Any Help or advice is greatly appreciated :)
Update :
I did the following within terminal to install the latest version
sudo pecl install mongo
Which has installed version 1.5.6. But after restarting my MAMP server the extension is still stating 1.2.10. Is there something I need to change in my php.ini file? I have already added extension=mongo.so
If you ran sudo pecl install mongo, you likely upgraded the driver for the system install of PHP, which is in a different path than MAMP. There should be a pecl binary within the MAMP path (e.g. /Applications/MAMP/bin/php/php5.x.x/bin), which should be run instead. You may find this blog article as helpful walk-through for the process.
sudo pecl upgrade mongodb worked for me today.
Netbeans claims they support Composer in Netbeans 7.3. However, I can confirm that I am running version 7.3, but there is no composer options in the PHP section of my preferences (running OSX 10.8.4)
Is there something else I have to do to get this working?
Thanks.
just right click your project (the root of the directory tree) and you will see the composer menu
Well, turns out that for some reason in OSX, it didn't install the Composer module. Don't know why, in Windows, it was installed from the get go. I had to install it from plugins, and I had initially missed it because it was titled "PHP Composer" and I was looking for simply "Composer"
I was installing the Moodle on my machine and faced a problem of requirement of Greater version of PHP which is not available in present version in wamp.
So couuld anyone suggest me: How can we upgrade PHP in present available wamp installed in Windows ?
You download the addon you want from WampServer addons, and execute it. It will add a context menu entry in WampManager letting you choose between the different installed PHP versions.
Read this article.
Just backup your data
Uninstall WAMP
Install new WAMP
or download this executable and execute it