php - Install PEAR extension HTTP_Request2 with composer -
i have composer.json file:
{ "name": "vendor/project", "description": "description_text", "repositories": [ { "type": "pear", "url": "http://pear.php.net" } ], "require": { "jakeasmith/http_build_url": "dev-master", "phpmailer/phpmailer": "dev-master", "pear-pear/text_diff": "*", "pear-pear/net_idna2": "*", "pear-pear/http_request2": "2.2.1" }, "require-dev": { "phpunit/phpunit": "< 4.0.0" } } and when i'm trying execute command php composer.phar install got this:
loading composer repositories package information initializing pear repository http://pear.php.net installing dependencies (including require-dev) requirements not resolved installable set of packages. problem 1 - installation request pear-pear/http_request2 2.2.1 -> satisfiable pear-pear.php.net/http_request2[2.2.1]. - pear-pear.php.net/http_request2 2.2.1 required pear-pear.php.net/net_url2 >=2.0.0.0 -> no matching package found. potential causes: - typo in package name - package not available in stable-enough version according minimum-stability setting see <https://groups.google.com/d/topic/composer-dev/_g3aseiflrc/discussion> more details. read <http://getcomposer.org/doc/articles/troubleshooting.md> further common problems. why i'm getting error? should store pear dependencies in composer.json file http_request2 extension?
p.s. if run php composer.phar install
"pear-pear/archive_tar": "*", "pear-pear/console_getopt": "*", "pear-pear/structures_graph": "*", "pear-pear/xml_util": "*", "pear-pear/pear": "*", "pear-pear/net_url2": "*" and after add string: "pear-pear/http_request2": "2.2.1" , run php composer.phar update - work magic! don't think right way.
fixed renaming:
"pear-pear/http_request2": "2.2.1" to
"pear-pear.php.net/http_request2": "2.2.1"
Comments
Post a Comment