PHPackages                             mcorrigan/salesforce-rest-api-php-wrapper - 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. mcorrigan/salesforce-rest-api-php-wrapper

ActiveLibrary[API Development](/categories/api)

mcorrigan/salesforce-rest-api-php-wrapper
=========================================

SalesForce REST API PHP Wrapper

1.0.3(9y ago)12235.4k↓13%6GNU-2.0PHPPHP &gt;=5.4

Since Jan 15Pushed 7y ago4 watchersCompare

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

READMEChangelog (3)DependenciesVersions (6)Used By (0)

Salesforce REST API PHP Wrapper
===============================

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

Description
-----------

[](#description)

This is a PHP Wrapper for the Salesforce Rest API.

Grant Type
----------

[](#grant-type)

This library currently only supports the [Username-Password authentication flow](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm) or password grant type.

Consumer Key / Secret
---------------------

[](#consumer-key--secret)

To retrieve your consumer key and secret, you will need to login to the instance (or sandbox instance). Click Setup at the top of the page and then navigate to Create -&gt; Apps. Here you will see several types of applications: Apps, Subtab Apps, and Connected Apps. Click the New button inside the Connected Apps section. Fill out the required form fields and check the Enable OAuth Settings checkbox. When using the username/password grant type, the Callback URL is not required, however you will still be required to enter a value.

Sandbox Setup
-------------

[](#sandbox-setup)

To create a new sandbox instance, login to your main salesforce instance. Click Setup at the top of the screen and navigate to Deploy -&gt; Sandboxes. Here you can choose a type of sandbox to deploy.

API Versions
------------

[](#api-versions)

To see available API versions, you can navigate to `https://.salesforce.com/services/data`. Generally you should be fine to use the most recent version. If you are not sure, please check the [SOQL documentation](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm)

Security Token
--------------

[](#security-token)

The Security Token used for login is emailed to the user on creation and when they reset their password. If you do not have access to this information, you will most likely need to reset the user's password.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity42

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~81 days

Total

4

Last Release

3533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ddfdb577d29d5c11e52ecdab1f93565f80493db255a2ca3f5fe06bfd65ac5ae?d=identicon)[mcorrigan](/maintainers/mcorrigan)

---

Top Contributors

[![observstream](https://avatars.githubusercontent.com/u/2252877?v=4)](https://github.com/observstream "observstream (8 commits)")[![harmstyler](https://avatars.githubusercontent.com/u/1421469?v=4)](https://github.com/harmstyler "harmstyler (1 commits)")[![mcorrigan](https://avatars.githubusercontent.com/u/1253843?v=4)](https://github.com/mcorrigan "mcorrigan (1 commits)")

---

Tags

salesforce

### Embed Badge

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

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

###  Alternatives

[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)[ddeboer/salesforce-mapper-bundle

A Salesforce API mapper

2835.2k](/packages/ddeboer-salesforce-mapper-bundle)[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)
