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

ActiveLibrary[API Development](/categories/api)

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

SalesForce REST API PHP Wrapper

2.0.0(7y ago)21.6k1GPL-2.0-onlyPHPPHP &gt;=5.4

Since Sep 7Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

2806d ago

### Community

Maintainers

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

---

Top Contributors

[![therouv](https://avatars.githubusercontent.com/u/393419?v=4)](https://github.com/therouv "therouv (16 commits)")[![dennisenderink](https://avatars.githubusercontent.com/u/329734?v=4)](https://github.com/dennisenderink "dennisenderink (8 commits)")[![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

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/therouv-salesforce-rest-api-php-wrapper/health.svg)](https://phpackages.com/packages/therouv-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)[mcorrigan/salesforce-rest-api-php-wrapper

SalesForce REST API PHP Wrapper

12235.4k](/packages/mcorrigan-salesforce-rest-api-php-wrapper)[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)
