1

I'm new to SDK-PHP and stuck on installing it via composer. I am currently using WAMP server 3.1.0 for Windows 10 which has 3 versions of PHP included. As documentation said version 5.6.24 is required for SDK-PHP. So I tried available 5.6.31 and got this from composer

composer require salesforce-mc/fuel-sdk-php
Using version ^1.1 for salesforce-mc/fuel-sdk-php
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - doctrine/annotations v1.6.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement.
    - doctrine/annotations v1.6.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement.
    - doctrine/annotations v1.6.0 requires php ^7.1 -> your PHP version (5.6.31) does not satisfy that requirement.
    - Installation request for doctrine/annotations (locked at v1.6.0) -> satisfiable by doctrine/annotations[v1.6.0]. 
Installation failed, reverting ./composer.json to its original content.

Then I changed PHP version to available 7.1.9 but that was not successful as well

composer  require salesforce-mc/fuel-sdk-php

 Using version ^1.1 for salesforce-mc/fuel-sdk-php
 ./composer.json has been updated
 Loading composer repositories with package information
 Updating dependencies (including require-dev)
 Your requirements could not be resolved to an installable set of packages.

   Problem 1
     - Installation request for salesforce-mc/fuel-sdk-php dev-master -> satisfiable by salesforce-mc/fuel-sdk-php[dev-master].
     - Can only install one of: salesforce-mc/fuel-sdk-php[v1.1.0, dev-master].
     - Installation request for salesforce-mc/fuel-sdk-php ^1.1 -> satisfiable by salesforce-mc/fuel-sdk-php[v1.1.0].
 Installation failed, reverting ./composer.json to its original content.

Would anyone be able to help resolving this issue?

1 Answer 1

0

Not sure whether I understand situation correctly. So if you mention ours as a require in composer.json like below:

{ "require": { "salesforce-mc/fuel-sdk-php": "1.1.0" } }

Then all you need to do is run this:

$ composer update

So if you download our source code from github, then we dont need to add this in the require section:

"salesforce-mc/fuel-sdk-php": "1.1.0" which is only necessary when you dont download the source code and want to get it from composer where we already released as a package.

So just to be clear, if you download our source code from github, all you should need to do is this:

$ composer update --no-dev

which will download all the dependencies mentioned in our composer.json file and ignore the require-dev section.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .