簡體   English   中英

Silvestripe 4.4 無法安裝 omnipay/paypal

[英]Silvestripe 4.4 can't instal omnipay/paypal

使用silverstripe 4.4 和silvershop,我嘗試了一百種變體來安裝omnipay/paypal和composer。

無論我嘗試什么,它都不會安裝。

有沒有人讓它與 ss4.4 一起工作?

怎么了?

在此處輸入圖片說明

根據您的錯誤消息,您缺少包php-http/client-implementation

如果您從Packagist快速瀏覽一下,您會發現該包實際上是一個虛擬包,因此您需要其中一個將自身定義為php-http/client-implementation ,因為它不是真實的包,你必須選擇一個。

如果您不知道該選擇哪個,請從Packagist 中選擇第一個。
值得一提的是,我過去實際上對狂飲套餐有很好的印象,所以我會說這是一個安全的賭注。

所以你可以通過做來解決你的問題

composer require php-http/guzzle6-adapter

然后運行

composer require omnipay/paypal

或者您甚至可以一次性完成:

$ composer require php-http/guzzle6-adapter omnipay/paypal
composer require php-http/guzzle6-adapter omnipay/paypal
Using version ^2.0 for php-http/guzzle6-adapter
Using version ^3.0 for omnipay/paypal
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 21 installs, 0 updates, 0 removals
  - Installing php-http/promise (v1.0.0): Downloading (100%)         
  - Installing psr/http-message (1.0.1): Downloading (100%)         
  - Installing psr/http-client (1.0.0): Downloading (100%)         
  - Installing php-http/httplug (v2.0.0): Downloading (100%)         
  - Installing moneyphp/money (v3.2.1): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.12.0): Downloading (100%)         
  - Installing symfony/polyfill-php72 (v1.12.0): Downloading (100%)         
  - Installing symfony/polyfill-intl-idn (v1.12.0): Downloading (100%)         
  - Installing symfony/mime (v4.3.3): Downloading (100%)         
  - Installing symfony/http-foundation (v4.3.3): Downloading (100%)         
  - Installing php-http/discovery (1.7.0): Downloading (100%)         
  - Installing clue/stream-filter (v1.4.1): Downloading (100%)         
  - Installing php-http/message-factory (v1.0.2): Downloading (100%)         
  - Installing php-http/message (1.8.0): Downloading (100%)         
  - Installing guzzlehttp/promises (v1.3.1): Downloading (100%)         
  - Installing ralouphie/getallheaders (3.0.3): Downloading (100%)         
  - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%)         
  - Installing guzzlehttp/guzzle (6.3.3): Downloading (100%)         
  - Installing php-http/guzzle6-adapter (v2.0.1): Downloading (100%)         
  - Installing omnipay/common (v3.0.2): Downloading (100%)         
  - Installing omnipay/paypal (v3.0.2): Downloading (100%)         
moneyphp/money suggests installing ext-bcmath (Calculate without integer limits)
moneyphp/money suggests installing ext-gmp (Calculate without integer limits)
moneyphp/money suggests installing ext-intl (Format Money objects with intl)
moneyphp/money suggests installing florianv/swap (Exchange rates library for PHP)
moneyphp/money suggests installing florianv/exchanger (Exchange rates library for PHP)
moneyphp/money suggests installing psr/cache-implementation (Used for Currency caching)
symfony/polyfill-intl-idn suggests installing ext-intl (For best performance)
php-http/discovery suggests installing puli/composer-plugin (Sets up Puli which is recommended for Discovery to work. Check http://docs.php-http.org/en/latest/discovery.html for more details.)
php-http/message suggests installing zendframework/zend-diactoros (Used with Diactoros Factories)
php-http/message suggests installing slim/slim (Used with Slim Framework PSR-7 implementation)
guzzlehttp/psr7 suggests installing zendframework/zend-httphandlerrunner (Emit PSR-7 responses)
guzzlehttp/guzzle suggests installing psr/log (Required for using the Log middleware)
omnipay/common suggests installing league/omnipay (The default Omnipay package provides a default HTTP Adapter.)
Writing lock file
Generating autoload files

更多關於虛擬包:

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM