PHPackages                             xhezairi/sforce-rest-api-php - 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. xhezairi/sforce-rest-api-php

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

xhezairi/sforce-rest-api-php
============================

A Salesforce REST API wrapper for PHP applications.

0.2.1(5y ago)111MITPHPPHP &gt;=7.2.0

Since Oct 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/xhezairi/sforce-rest-api-php)[ Packagist](https://packagist.org/packages/xhezairi/sforce-rest-api-php)[ Docs](https://github.com/xhezairi/sforce-rest-api-php)[ RSS](/packages/xhezairi-sforce-rest-api-php/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (7)Versions (6)Used By (0)

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

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

The Story
---------

[](#the-story)

I had the need to integrate a PHP web app with Salesforce, and given the humongous popularity of the platform, it was surprising that there was no library which provides a seamless way into its REST API.

Google results returned [these](https://github.com/bjsmasth/php-salesforce-rest-api) [two](https://github.com/jahumes/salesforce-rest-api-php-wrapper) packages, but neither was being actively developed, nor were they up to date with the recent state of Salesforce's API, and both were using a non-recommended authentication flow.

Install
-------

[](#install)

Via Composer

```
composer require xhezairi/sforce-rest-api-php
```

### Recommended Salesforce API Readings

[](#recommended-salesforce-api-readings)

- [Build a Connected App for API Integration](https://trailhead.salesforce.com/content/learn/projects/build-a-connected-app-for-api-integration/implement-the-oauth-20-web-server-authentication-flow)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Total

4

Last Release

2037d ago

### Community

Maintainers

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

---

Top Contributors

[![xhezairbey](https://avatars.githubusercontent.com/u/463095?v=4)](https://github.com/xhezairbey "xhezairbey (13 commits)")

---

Tags

phpapirestlibrarywrappersalesforce

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/xhezairi-sforce-rest-api-php/health.svg)

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

###  Alternatives

[amazon-php/sp-api-sdk

Amazon Selling Partner API - PHP SDK

133374.1k1](/packages/amazon-php-sp-api-sdk)[huaweicloud/huaweicloud-sdk-php

Huawei Cloud SDK for PHP

1829.2k2](/packages/huaweicloud-huaweicloud-sdk-php)

PHPackages © 2026

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