use*_*235 9 php shell json curl omnipay
There is a plugin that need to config the composer
First , I need to run:
https://github.com/thephpleague/omnipay
composer require omnipay/paypal:~2.0
Run Code Online (Sandbox Code Playgroud)
So, I have type in the above command in xampp shell, it works, and a composer.json , vendor folder is created in xampp root folder.
第一步是成功.其次,我需要配置
https://github.com/lokielse/omnipay-alipay
我已将composer.json编辑为:
{
"require": {
"lokielse/omnipay-alipay": "dev-master"
}
}
Run Code Online (Sandbox Code Playgroud)
但问题是我似乎无法在xampp shell中运行以下命令.它只显示$不是命令.那么,我该如何执行呢?非常感谢
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Run Code Online (Sandbox Code Playgroud)
如果第一个命令成功运行,则意味着您的作曲家使用该命令可以正常工作,composer该命令通常是php composer.phar. curl -s http://getcomposer.org/installer | php安装 Composer 还需要命令,但你显然已经安装了它。
总结一下,不要运行这些命令:
curl -s http://getcomposer.org/installer | php
php composer.phar update
Run Code Online (Sandbox Code Playgroud)
相反运行这个:
composer update
Run Code Online (Sandbox Code Playgroud)