Answer the question
In order to leave comments, you need to log in
How to remove an error when installing a PHP client for working with the retailCRM API?
When installing the Library for working with the API via composer on the VDS server, it gives an error:
there are only 2 composer.phar and composer.json files in the root of the site
Contents of composer.json
{
"name": "retailcrm/api-client-php",
"description": "PHP client for retailCRM API",
"type": "library",
"keywords": ["API", "retailCRM", "REST"],
"homepage": "http://www.retailcrm.pro/",
"license": "MIT",
"authors": [
{
"name": "retailCRM",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.3.0",
"ext-curl": "*"
},
"require-dev": {
"phpunit/phpunit": "5.2.*",
"phpunit/php-code-coverage": "3.3.0",
"phpunit/php-invoker": "1.1.4",
"phpmd/phpmd": "2.4.*",
"sebastian/phpcpd": "2.0.*",
"sebastian/phpdcd": "1.0.*",
"squizlabs/php_codesniffer": "2.5.*",
"apigen/apigen": "4.1.*"
},
"support": {
"email": "[email protected]"
},
"autoload": {
"psr-0": { "RetailCrm\\": "lib/" }
},
"extra": {
"branch-alias": {
"dev-master": "3.0.x-dev"
}
},
"config": {
"bin-dir": "bin",
"process-timeout": 600
}
}
Answer the question
In order to leave comments, you need to log in
It is written in white on black - you need php 5.6 or 7.0, and you have 5.5.9.
It is written in white on black - you need php 5.6 or 7.0, and you have 5.5.9. :)
Linking to a php version higher than 5.6 is only for require-dev libraries used for code testing, they are not needed when installing the library on prod, the code of the library itself depends only on the curl extension, it will easily work on 5.3.
So you can get rid of this problem by running composer in --no-dev mode:composer install --no-dev
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question