Git Product home page Git Product logo

Comments (5)

garek007 avatar garek007 commented on July 17, 2024 1

I'm not positive, but I think it's because you tried to install before. Can you wipe out the directory and start with PHP7 again? It looks like you have remnants from your first install, and that is causing issues when you tried it the second time.

from fuelsdk-php.

sharif26 avatar sharif26 commented on July 17, 2024 1

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

from fuelsdk-php.

sharif26 avatar sharif26 commented on July 17, 2024 1

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.

from fuelsdk-php.

garek007 avatar garek007 commented on July 17, 2024 1

Glad it worked out

from fuelsdk-php.

IlyaKhromov avatar IlyaKhromov commented on July 17, 2024

Thank you @garek007 and @sharif26 .
Just to be clear.
Firstly, as documentation says I downloaded the project and added "salesforce-mc/fuel-sdk-php": "1.1.0" into composer.json file to the section require so that my composer.json looked like this

{
    "name": "salesforce-mc/fuel-sdk-php",
    "description": "Salesforce Marketing Cloud Fuel SDK for PHP",
    "homepage": "https://developer.salesforce.com/docs/atlas.en-us.mc-sdks.meta/mc-sdks/index-sdk.htm",
    "license": "MIT",
    "type": "library",
    "minimum-stability": "stable",
    "require": {
        "ext-curl": "*",
        "ext-openssl": "*",
        "ext-soap": "*",
        "php": ">=7.1.9",
        "robrichards/wse-php":"2.0.1",
        "firebase/php-jwt":">=5.0.0",
        "salesforce-mc/fuel-sdk-php": "1.1.0"
    },
    "require-dev": {
        "phpunit/phpunit":">=5.7.20",
        "phpdocumentor/phpdocumentor": "2.8.0",
        "dompdf/dompdf": "0.6"
    },
    "keywords": [
        "exacttarget",
        "salesforce",
        "marketing cloud",
        "php sdk",
        "sdk",
        "fuel sdk",
        "fuel-sdk"
    ],
    "autoload": {
        "psr-4": {
            "FuelSdk\\" : "src/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "FuelSdk\\Test\\": "tests/"
        }
    }
}

Then I run composer update which created vendor folder with all the needed folders inside except salesforce-mc folder and the message in my PowerShell was as follows

 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].

After that I tried 2 attempts described in my comment above.
What helped me was to delete composer.json and run composer require salesforce-mc/fuel-sdk-php so that the composer.json consisted only of this piece of code

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

And after that installation went as it should be creating all the needed folders in vendor.

from fuelsdk-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.