PHPackages                             digitaladditive/php-fuel-sdk-fork - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. digitaladditive/php-fuel-sdk-fork

ActiveLibrary[API Development](/categories/api)

digitaladditive/php-fuel-sdk-fork
=================================

Fork of the Salesforce Marketing Cloud Fuel SDK for PHP

1.3(7y ago)02.8k1MITPHPPHP &gt;=5.6.24

Since May 1Pushed 7y ago1 watchersCompare

[ Source](https://github.com/patrickisgreat/da-php-fuel-sdk)[ Packagist](https://packagist.org/packages/digitaladditive/php-fuel-sdk-fork)[ Docs](https://developer.salesforce.com/docs/atlas.en-us.mc-sdks.meta/mc-sdks/index-sdk.htm)[ RSS](/packages/digitaladditive-php-fuel-sdk-fork/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (6)Dependencies (5)Versions (11)Used By (1)

FuelSDK-PHP
===========

[](#fuelsdk-php)

Salesforce Marketing Cloud Fuel SDK for PHP

> Salesforce Marketing Cloud Fuel SDK for PHP is free to use but are not official Salesforce Marketing Cloud products and should be considered community projects. This SDK is not officially tested or documented. For help on any Salesforce Marketing Cloud Fuel SDK for PHP, please consult the Salesforce message boards or the issues section of this repository. Salesforce Marketing Cloud support is not available for this SDK.

Overview
--------

[](#overview)

The Fuel SDK for PHP provides easy access to Salesforce Marketic Cloud's Fuel API Family services, including a collection of REST and SOAP API. These APIs provide access to Salesforce Marketing Cloud (previously called ExactTarget) functionality via common collection types such as array/hash.

New Features in Version 1.1.0
-----------------------------

[](#new-features-in-version-110)

- **namespace :** namespace is introduced.
- **newly supported objects:**

    - Result Message
    - Data Extract
    - Triggered Send Summary
- composer autoload issue fix

Requirements
------------

[](#requirements)

PHP Version &gt;=5.6.24

Extensions:

- openssl
- SOAP
- curl

API Documentation
-----------------

[](#api-documentation)

Installation
------------

[](#installation)

### Manual Installation

[](#manual-installation)

After downloading the project, rename the config.php.template file to config.php. Most importantly, you also need to download all dependencies manually and include accordingly. That's why we highly encourage to get it from composer.

### Composer

[](#composer)

Add a dependency to composer require salesforce-mc/fuel-sdk-php to the require section of your project's composer.json configuration file, and update your application.

The following code is an example of a minimal composer.json file:

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

Getting Started
---------------

[](#getting-started)

Edit config.php so you can input the ClientID and ClientSecret values provided when you registered your application. If you are building a HubExchange application for the Interactive Marketing Hub then, you must also provide the Application Signature (appsignature). Only change the value for the defaultwsdl configuration item if instructed by ExactTarget.

See the ET\_Client section below for details on how to specify these values at the time the ET\_Client object is instantiated if you would prefer to store the ClientID and ClientSecret values in a database or other configuration storage mechanism.

If you have not registered your application or you need to lookup your Application Key or Application Signature values, please go to Salesforce Marketing Cloud App Center.

Example Request
---------------

[](#example-request)

All ExactTarget objects exposed through the Fuel SDK begin with be prefixed with "ET\_". Start by working with the ET\_List object:

Get the config.php.template file (under vendor/salesforce-mc/ using composer), rename it to config.php and update clientId &amp; clientSecret.
Most importantly, put it in your project's root directory where composer.json file exists.

Add composer's auto generated autoload.php file, change the path according to your directory structure:

> require \_\_DIR\_\_ . '/../vendor/autoload.php';

Add use statement to reference the FuelSdk namespace:

> use FuelSdk\\ET\_Client;
> use FuelSdk\\ET\_List;

Next, create an instance of the ET\_Client class:

> $myclient = new ET\_Client();

Create an instance of the object type we want to work with:

> $getList = new ET\_List();

Associate the ET\_Client to the object using the authStub property:

> $getList-&gt;authStub = $myclient;

Utilize one of the ET\_List methods:

> $getResponse = $getList-&gt;get();

Print out the results for viewing

> print\_r($getResponse);

**Example Output:**

```
ET_Get Object
(
    [status] => 1
    [code] => 200
    [message] =>
    [results] => Array
        (
            [0] => stdClass Object
                (
                    [Client] => stdClass Object
                        (
                            [ID] => 1000001
                            [PartnerClientKey] =>
                        )

                    [PartnerKey] =>
                    [CreatedDate] => 2009-06-12T14:42:06.1
                    [ModifiedDate] => 2011-08-17T14:50:30.697
                    [ID] => 1718921
                    [ObjectID] => f41c7d1b-8957-de11-92ee-001cc494ae9e
                    [CustomerKey] => All Subscribers - 578623
                    [ListName] => All Subscribers
                    [Category] => 578623
                    [Type] => Private
                    [Description] => Contains all subscribers
                    [ListClassification] => ExactTargetList
                )

        )

    [request_id] => 5d56a37e-4b13-4f0a-aa13-2e108e60a990
    [moreResults] =>
)
```

ET\_Client Class
----------------

[](#et_client-class)

The ET\_Client class takes care of many of the required steps when accessing ExactTarget's API, including retrieving appropriate access tokens, handling token state for managing refresh, and determining the appropriate endpoints for API requests. In order to leverage the advantages this class provides, use a single instance of this class for an entire session. Do not instantiate a new ET\_Client object for each request made.

The ET\_Client class accepts multiple parameters

**Refresh WSDL** - If set to true, it will automatically download a local copy of the WSDL whenever an update is found.

> $myclient = new ET\_Client(true);

**Debug** - If set to true, all API requests that the Fuel SDK is making behind the scenes will be logged to PHP's error log. This option should only be set to true in order to troubleshoot during the development process and should never be used in a production scenario.

> $myclient = new ET\_Client(true,true);

**Parameters** - Allows for passing authentication information for use with SSO with a JWT or for passing ClientID/ClientSecret if you would prefer to not use the config file option.

Example passing JWT:

> $myclient = new ET\_Client(true, array("jwt"=&gt;"JWT Values goes here"));

Example passing ClientID/ClientSecret:

> $myclient = new ET\_Client(true, array("clientid" =&gt; "3bjbc3mg4nbk64z5kzczf89n", "clientsecret"=&gt;"ssnGAPvZg6kmm775KPj2Q4Cs"));

Responses
---------

[](#responses)

All methods on Fuel SDK objects return a generic object that follows the same structure, regardless of the type of call. This object contains a common set of properties used to display details about the request.

- status: Boolean value that indicates if the call was successful
- code: HTTP Error Code (will always be 200 for SOAP requests)
- message: Text values containing more details in the event of an error
- results: Collection containing the details unique to the method called.

Get Methods also return an addition value to indicate if more information is available (that information can be retrieved using the getMoreResults method):

- moreResults - Boolean value that indicates on Get requests if more data is available.

Samples
-------

[](#samples)

Find more sample files that illustrate using all of the available functions for ExactTarget objects exposed through the API in the objsamples directory.

Sample List:

- [BounceEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-bounceevent.php)
- [Campaign](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-campaign.php)
- [ClickEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-clickevent.php)
- [ContentArea](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-contentarea.php)
- [DataExtension](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-dataextension.php)
- [DataExtractActivity](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-data-extract-activity.php)
- [Email](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-email.php)
- [Folder](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-folder.php)
- [List](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-list.php)
- [List &gt; Subscriber](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-list.subscriber.php)
- [OpenEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-openevent.php)
- [ResultMessage](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-resultmessage.php)
- [SentEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-sentevent.php)
- [Subscriber](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-subscriber.php)
- [TriggeredSend](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-triggeredsend.php)
- [TriggeredSendSummary](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-triggeredsendsummary.php)
- [UnsubEvent](https://github.com/ExactTarget/FuelSDK-PHP/blob/master/objsamples/sample-unsubevent.php)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~15 days

Recently: every ~27 days

Total

8

Last Release

2823d ago

Major Versions

0.1 → v1.02018-05-01

0.1.2 → v1.12018-05-01

### Community

Maintainers

![](https://www.gravatar.com/avatar/cc691f8801dd2f0003a99dca7884911a633aeb95b101380f2227ea9355d95758?d=identicon)[patrickisgreat](/maintainers/patrickisgreat)

---

Top Contributors

[![patrickisgreat](https://avatars.githubusercontent.com/u/786298?v=4)](https://github.com/patrickisgreat "patrickisgreat (19 commits)")

---

Tags

sdkphp-sdksalesforceexacttargetmarketing cloudfuel sdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digitaladditive-php-fuel-sdk-fork/health.svg)

```
[![Health](https://phpackages.com/badges/digitaladditive-php-fuel-sdk-fork/health.svg)](https://phpackages.com/packages/digitaladditive-php-fuel-sdk-fork)
```

###  Alternatives

[docusign/esign-client

The Docusign PHP library makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-php-client repository. Join the eSign revolution!

2087.4M13](/packages/docusign-esign-client)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)[wallee/sdk

wallee SDK for PHP

12354.2k11](/packages/wallee-sdk)[qwen-php/qwen-php-client

robust and community-driven PHP SDK library for seamless integration with the qwen AI API, offering efficient access to advanced AI and data processing capabilities

213.2k1](/packages/qwen-php-qwen-php-client)[leapfu/cloud-printer

高扩展性云小票打印SDK，支持飞鹅云、芯烨云、易联云、快递100、映美云、佳博云、中午云、优声云等主流云打印服务，兼容 Laravel、ThinkPHP 等主流框架，统一API，易集成，易扩展。

104.5k](/packages/leapfu-cloud-printer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
