PHPackages                             xpanse/phpsdk - 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. xpanse/phpsdk

ActiveLibrary[API Development](/categories/api)

xpanse/phpsdk
=============

php SDK to provide a friendly interface to the xpanse API

v2.2.0(1y ago)0301MITPHPPHP &gt;=7.4CI passing

Since Jan 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/xpanse-one/phpsdk)[ Packagist](https://packagist.org/packages/xpanse/phpsdk)[ RSS](/packages/xpanse-phpsdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

xpanse PHP SDK
==============

[](#xpanse-php-sdk)

Library for integrating with xpanse payments in your app. It includes the following APIs:

1. Charge API
2. Customer API
3. PaymentMethod API
4. Transfer API
5. Vault API
6. Token API
7. Provider API
8. Batch API
9. Subscription API

📄 Requirements
--------------

[](#-requirements)

Use of the xpanse PHP SDK requires:

- PHP 7.4 or higher
- PHPUnit

Running tests
=============

[](#running-tests)

To run the tests, ensure you have phpunit installed.

Before running the tests, create `config.json` file in `tests` folder with the following contents:

```
{
  "Environment": "Development",
  "SecretKey": "XPANSE_SECRET_KEY",
  "ProviderId": "DUMMY_PROVIDER_ID",
  "Tokens": ["PAYMENT_TOKEN1","PAYMENT_TOKEN2"]
}
```

Then run `phpunit tests`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance48

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

Total

2

Last Release

383d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6589fd877f22b76b204b1e62961597f23f27ed8434bbcc8aec4b4d32ae47dbfb?d=identicon)[David\_Cameron](/maintainers/David_Cameron)

---

Top Contributors

[![dcamdupe](https://avatars.githubusercontent.com/u/3490458?v=4)](https://github.com/dcamdupe "dcamdupe (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xpanse-phpsdk/health.svg)

```
[![Health](https://phpackages.com/badges/xpanse-phpsdk/health.svg)](https://phpackages.com/packages/xpanse-phpsdk)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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