PHPackages                             gmo/salesforce-rest-api - 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. gmo/salesforce-rest-api

ActiveLibrary

gmo/salesforce-rest-api
=======================

v2.0.6(7y ago)241.8k—0%15[1 PRs](https://github.com/gmo/salesforce-rest-api/pulls)MITPHPPHP &gt;=5.3

Since Jul 24Pushed 7y ago10 watchersCompare

[ Source](https://github.com/gmo/salesforce-rest-api)[ Packagist](https://packagist.org/packages/gmo/salesforce-rest-api)[ RSS](/packages/gmo-salesforce-rest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

salesforce-rest-api
===================

[](#salesforce-rest-api)

A simple PHP client for the Salesforce REST API

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

[](#installation)

Install with composer:

```
composer config repositories.salesforce-rest-api vcs https://github.com/gmo/salesforce-rest-api
composer require "gmo/salesforce-rest-api:^1.0"

```

Usage
-----

[](#usage)

Initialize the `Salesforce\Client` class, call the APIs you want.

```
use Gmo\Salesforce;
use Gmo\Salesforce\Exception;
use Guzzle\Http;

$authentication = new Salesforce\Authentication\PasswordAuthentication(
	"ClientId",
	"ClientSecret",
	"Username",
	"Password",
	"SecurityToken",
	new Http\Client()
);
$salesforce = new Salesforce\Client($authentication, new Http\Client(), "na5");

try {
	$contactQueryResults = $salesforce->query("SELECT AccountId, LastName
		FROM Contact
		WHERE FirstName = ?",
		array('Alice')
	);
	foreach($contactQueryResults as $queryResult) {
		print_r($queryResult);  // The output of a single record from the query API JSON, converted to associative array
	}

    $contactQueryResults2 = $salesforce->query("SELECT AccountId, LastName
        FROM Contact
        WHERE FirstName = :firstName",
        array('firstName' => 'Bob')
    );
    foreach($contactQueryResults2 as $queryResult) {
        print_r($queryResult);  // The output of a single record from the query API JSON, converted to associative array
    }

} catch(Exception\SalesforceNoResults $e) {
	// Do something when you have no results from your query
} catch(Exception\Salesforce $e) {
	// Error handling
}
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

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

Recently: every ~280 days

Total

14

Last Release

2601d ago

Major Versions

v1.1.0 → v2.0.02015-09-09

### Community

Maintainers

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

---

Top Contributors

[![mikegillis677](https://avatars.githubusercontent.com/u/5703580?v=4)](https://github.com/mikegillis677 "mikegillis677 (25 commits)")

### Embed Badge

![Health badge](/badges/gmo-salesforce-rest-api/health.svg)

```
[![Health](https://phpackages.com/badges/gmo-salesforce-rest-api/health.svg)](https://phpackages.com/packages/gmo-salesforce-rest-api)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k4](/packages/elgg-elgg)[neos/flow

Flow Application Framework

862.0M450](/packages/neos-flow)[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[flowwow/cloudpayments-php-client

cloudpayments api client

2188.2k](/packages/flowwow-cloudpayments-php-client)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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