F
F
forwox2016-05-31 16:28:01
API
forwox, 2016-05-31 16:28:01

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:
16c7216628ec42588334746ddba86748.png
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
    }
}

What am I doing wrong? (

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2016-05-31
@alsopub

It is written in white on black - you need php 5.6 or 7.0, and you have 5.5.9.

S
Stanislav Pochepko, 2016-05-31
@DJZT

It is written in white on black - you need php 5.6 or 7.0, and you have 5.5.9. :)

G
gwinn, 2016-06-01
@gwinn

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 question

Ask a Question

731 491 924 answers to any question