PHPackages                             aracoool/salesforce-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. aracoool/salesforce-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aracoool/salesforce-client
==========================

SalesForce REST api client

1.0.4(7y ago)72863MITPHPPHP &gt;=5.5

Since Jan 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ARACOOOL/salesforce-client)[ Packagist](https://packagist.org/packages/aracoool/salesforce-client)[ RSS](/packages/aracoool-salesforce-client/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

SalesForce REST Api PHP client
==============================

[](#salesforce-rest-api-php-client)

Salesforce / Force.com REST API PHP client. While it acts as more of a wrapper of the API methods, it should provide you with all the flexibility you will need to interact with the Salesforce REST api.

This component is based on documentation available [here](https://resources.docs.salesforce.com/sfdc/pdf/api_rest.pdf)

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

[](#installation)

```
composer require "aracoool/salesforce-client:^1.0"
```

Usage
-----

[](#usage)

### Getting an information of the specific account

[](#getting-an-information-of-the-specific-account)

```
use SalesForce\Authentication\Authentication;
use SalesForce\Authentication\PasswordAuthentication;

require __DIR__ . '/vendor/autoload.php';

$client = new \SalesForce\ClientFactory::create(new PasswordAuthentication(
    Authentication::LIVE_HOST,
    'client id',
    'client secret',
    'username',
    'password + access token'
));

try {
    $result = $client->get('/sobjects/Account/0013600001UltKTAAZ');
    print_r($result);
} catch (Exception $e) {
    echo $e->getMessage() . PHP_EOL;
}
```

**Result**

```
stdClass Object
(
    [attributes] => stdClass Object
        (
            [type] => Account
            [url] => /services/data/v42.0/sobjects/Account/0013600001UltKTAAZ
        )

    [Id] => 0013600001UltKTAAZ
    ...
)

```

### Usage of the SOQL and SOQL query builder

[](#usage-of-the-soql-and-soql-query-builder)

```
...

$soqlBuilder = new \SalesForce\Soql\Builder();
$soqlBuilder->select(['name'])
    ->from('Account');

try {
    $result = $client->get($soqlBuilder->build());
    print_r($result);
} catch (Exception $e) {
    echo $e->getMessage() . PHP_EOL;
}
```

**Result**

```
stdClass Object
(
    [totalSize] => 10845
    [done] =>
    [nextRecordsUrl] => /services/data/v42.0/query/01g0x000004qMUXAA2-2000
    [records] => Array
        (
            [0] => stdClass Object
                (
                    [attributes] => stdClass Object
                        (
                            [type] => Account
                            [url] => /services/data/v42.0/sobjects/Account/0010x000003mP6UAAU
                        )

                    [Name] => John Smith
                )

                ...
        )
)

```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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 ~116 days

Total

5

Last Release

2609d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/539863?v=4)[Askar](/maintainers/ARACOOOL)[@ARACOOOL](https://github.com/ARACOOOL)

---

Top Contributors

[![ARACOOOL](https://avatars.githubusercontent.com/u/539863?v=4)](https://github.com/ARACOOOL "ARACOOOL (7 commits)")

---

Tags

clienthttpphprestrest-apisalesforcesalesforce-apihttpapiclientrestcurlweb servicesalesforce

### Embed Badge

![Health badge](/badges/aracoool-salesforce-client/health.svg)

```
[![Health](https://phpackages.com/badges/aracoool-salesforce-client/health.svg)](https://phpackages.com/packages/aracoool-salesforce-client)
```

###  Alternatives

[e-moe/guzzle6-bundle

Integrates Guzzle 6 into your Symfony application

12261.2k1](/packages/e-moe-guzzle6-bundle)[zoonman/pixabay-php-api

PixabayClient is a PHP HTTP client library to access Pixabay's API

3355.9k](/packages/zoonman-pixabay-php-api)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.5k](/packages/ismaeltoe-osms)[meteocontrol/vcom-api-client

HTTP Client for meteocontrol's VCOM API - The VCOM API enables you to directly access your data on the meteocontrol platform.

177.2k1](/packages/meteocontrol-vcom-api-client)

PHPackages © 2026

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