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 3w 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 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

2091d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/463095?v=4)[Arian Xhezairi](/maintainers/xhezairbey)[@xhezairbey](https://github.com/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

[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k13](/packages/tempest-framework)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M412](/packages/drupal-core-recommended)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M559](/packages/shopware-core)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.5M9](/packages/chargebee-chargebee-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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