PHPackages                             wakeonweb/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. [API Development](/categories/api)
4. /
5. wakeonweb/salesforce-client

ActiveLibrary[API Development](/categories/api)

wakeonweb/salesforce-client
===========================

WakeOnWeb Salesforce client

v1.0.4(7y ago)124.2k31MITPHPPHP &gt;=7.0

Since Jan 3Pushed 7y ago3 watchersCompare

[ Source](https://github.com/WakeOnWeb/salesforce-client)[ Packagist](https://packagist.org/packages/wakeonweb/salesforce-client)[ Docs](https://github.com/wakeonweb/salesforce-client)[ RSS](/packages/wakeonweb-salesforce-client/feed)WikiDiscussions master Synced 1mo ago

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

PHP Salesforce client
=====================

[](#php-salesforce-client)

[![Build Status](https://camo.githubusercontent.com/69aa0ca5dfa2f055180adc4721daa61a49157afb37b0b80788885cdf7ac55804/68747470733a2f2f6170692e7472617669732d63692e6f72672f57616b654f6e5765622f73616c6573666f7263652d636c69656e742e737667)](https://travis-ci.org/WakeOnWeb/salesforce-client)

Supported technologies:

```
- rest
    - oauth2 grant type: password.

```

Please, contribute to support other one.

Usage
-----

[](#usage)

```
use WakeOnWeb\SalesforceClient\REST;
use WakeOnWeb\SalesforceClient\ClientInterface;

$client = new REST\Client(
    new REST\Gateway('https://cs81.salesforce.com', '41.0'),
    new REST\GrantType\PasswordStrategy(
        'consumer_key',
        'consumer_secret',
        'login',
        'password',
        'security_token'
    )
);
```

Available exception -------------------

- DuplicatesDetectedException
- EntityIsDeletedException (when try to delete an entity already deleted)
- NotFoundException (when an object cannot be found)
- ...

Get object
----------

[](#get-object)

```
try {
    $salesforceObject = $client->getObject( 'Account', '1337ID')); // all fields
} catch (\WakeOnWeb\SalesforceClient\Exception\NotFoundException) {
    // this object does not exist, do a specifig thing.
}

//$salesforceObject->getAttributes();
//$salesforceObject->getFields();

//$client->getObject( 'Account', '1337ID', ['Name', 'OwnerId', 'CreatedAt'] )); // specific fields
```

Create object
-------------

[](#create-object)

```
// creation will be a SalesforceObjectCreationObject
$creation = $client->createObject( 'Account', ['name' => 'Chuck Norrs'] );
// $creation->getId();
// $creation->isSuccess();
// $creation->getErrors();
// $creation->getWarnings();
```

Edit object
-----------

[](#edit-object)

```
$client->patchObject( 'Account', '1337ID', ['name' => 'Chuck Norris'] ));
```

Delete object
-------------

[](#delete-object)

```
$client->deleteObject( 'Account', '1337ID'));

```

SOQL
----

[](#soql)

```
// creation will be a SalesforceObjectCreationObjectResults
$client->searchSOQL('SELECT name from Account'); // NOT_ALL by default.
$client->searchSOQL('SELECT name from Account', ClientInterface::ALL);
// $creation->getTotalSize();
// $creation->isDone();
// $creation->getRecords();
```

Other
-----

[](#other)

```
$client->getAvailableResources();
$client->getAllObjects();
$client->describeObjectMetadata('Account');
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 86.7% 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 ~58 days

Total

5

Last Release

2822d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/47c3006a9e7662031ee9d3fa064238fef88479fd7d60f18dd47f038fbbd7dc5a?d=identicon)[steph\_py](/maintainers/steph_py)

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

---

Top Contributors

[![stephpy](https://avatars.githubusercontent.com/u/232744?v=4)](https://github.com/stephpy "stephpy (13 commits)")[![j-ledoux](https://avatars.githubusercontent.com/u/2115259?v=4)](https://github.com/j-ledoux "j-ledoux (1 commits)")[![w10t](https://avatars.githubusercontent.com/u/5654316?v=4)](https://github.com/w10t "w10t (1 commits)")

---

Tags

salesforce

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[phpforce/soap-client

A PHP client for the Salesforce SOAP API

831.9M1](/packages/phpforce-soap-client)[davispeixoto/laravel5-salesforce

Laravel 5 Salesforce Force.com PHP Toolkit port

47142.8k1](/packages/davispeixoto-laravel5-salesforce)[mcorrigan/salesforce-rest-api-php-wrapper

SalesForce REST API PHP Wrapper

12235.4k](/packages/mcorrigan-salesforce-rest-api-php-wrapper)[davispeixoto/laravel-salesforce

Laravel 4 Salesforce Force.com PHP Toolkit port

1433.1k](/packages/davispeixoto-laravel-salesforce)

PHPackages © 2026

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