salesforce-marketingcloud / FuelSDK-PHP

FuelSDK-PHP
MIT License
134 stars 142 forks source link

option to read from config. Fix php 7 issues #165

Open rodruiz opened 3 years ago

rodruiz commented 3 years ago

Fixes:

To read the config file from a custom path:

$myclient = new ET_Client(true, false, null, true, '/path/to/config.php');

To ignore config file:

$params = array(...);
$myclient = new ET_Client(true, false, $params, false);

I can submit another PR to optimize and remove duplicate code from ET_Client constructor. Merging $params with $config should do the trick.

PWalkow commented 3 years ago

Why this fix wasn't merged yet?

dsepulveda-pr commented 2 years ago

is there another plan for this, why is still not merged?

rodruiz commented 2 years ago

@PWalkow and @dsepulveda-pr you can use my branch doing the following:

1- Add the following to your composer.json file

    "repositories": [
        {
            "type": "git",
            "url": "https://github.com/rodruiz/FuelSDK-PHP.git"
        }
    ]

2- Replace:

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

with:

{
    "require": {
        "salesforce-mc/fuel-sdk-php": "dev-master"
    }
}
JeremyDunn commented 2 years ago

@manivinesh Looks like you have approved previous PRs. Would you mind reviewing this one? This sdk is unusable in PHP 7.4 at the moment.

boxyashish commented 2 years ago

can someone please review and merge this PR