2
我正在使用作曲家來轉換舊項目(使用舊依賴項)來管理它的依賴項。該網站使用PEAR的Text_Password。我看,這是可以安裝與作曲家的依賴性增加(類似)以下,以composer.json:試圖用composer安裝PEAR擴展
"repositories": [
{
"type": "pear",
"url": "http://pear.php.net"
}
],
"require": {
...
"pear-pear/Text_Password": "*"
},
..但我得到的錯誤:
$ composer update
Loading composer repositories with package information
Initializing PEAR repository http://pear.php.net
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package pear-pear/text_password could not be found in any version, there may be a typo in the package name.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.
是否有可能安裝具有Composer的PEAR庫?我注意到packagist有一個PEAR庫的集合,但我看不到Text_Password - https://packagist.org/packages/pear/
還有一個github回購Text_Password,但我想也許從PEAR安裝直接更好? - https://github.com/pear/Text_Password
無論如何,我該如何安裝這個軟件包與作曲家?