PHPackages                             splitit-dev/splitit-php-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. splitit-dev/splitit-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

splitit-dev/splitit-php-sdk
===========================

Splitit's Installments API is the primary Splitit tool for establishing and maintaining installment plans. Use it to verify shopper eligibility, create plans with or without immediate authorization, get plan information, update plan status, and process refunds and cancellations.

2.0.11(2mo ago)01.5k↑537.5%MITPHPPHP ^7.2 || ^8.0CI failing

Since Jun 30Pushed 2mo agoCompare

[ Source](https://github.com/Splitit/PHP-SDK)[ Packagist](https://packagist.org/packages/splitit-dev/splitit-php-sdk)[ Docs](https://splitit.com/)[ RSS](/packages/splitit-dev-splitit-php-sdk/feed)WikiDiscussions develop Synced today

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

Getting Started with splitit-web-api-v3
=======================================

[](#getting-started-with-splitit-web-api-v3)

Install the Package
-------------------

[](#install-the-package)

Run the following command to install the package and automatically add the dependency to your composer.json file:

```
composer require "splitit/splitit-php-sdk:0.0.51"
```

Or add it to the composer.json file manually as given below:

```
"require": {
    "splitit/splitit-php-sdk": "0.0.51"
}
```

You can also view the package at:

Test the SDK
------------

[](#test-the-sdk)

Unit tests in this SDK can be run using PHPUnit.

1. First install the dependencies using composer including the `require-dev` dependencies.
2. Run `vendor\bin\phpunit --verbose` from commandline to execute tests. If you have installed PHPUnit globally, run tests using `phpunit --verbose` instead.

You can change the PHPUnit test configuration in the `phpunit.xml` file.

Initialize the API Client
-------------------------

[](#initialize-the-api-client)

***Note:*** Documentation for the client can be found [here.](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/client.md)

The following parameters are configurable for the API Client:

ParameterTypeDescriptionenvironment`Environment`The API environment.
 **Default: `Environment.PRODUCTION`**timeout`int`Timeout for API calls in seconds.
*Default*: `0`enableRetries`bool`Whether to enable retries and backoff feature.
*Default*: `false`numberOfRetries`int`The number of retries to make.
*Default*: `0`retryInterval`float`The retry time interval between the endpoint calls.
*Default*: `1`backOffFactor`float`Exponential backoff factor to increase interval between retries.
*Default*: `2`maximumRetryWaitTime`int`The maximum wait time in seconds for overall retrying requests.
*Default*: `0`retryOnTimeout`bool`Whether to retry on request timeout.
*Default*: `true`httpStatusCodesToRetry`array`Http status codes to retry against.
*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524`httpMethodsToRetry`array`Http methods to retry against.
*Default*: `'GET', 'PUT'`proxyConfiguration[`ProxyConfigurationBuilder`](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/proxy-configuration-builder.md)Represents the proxy configurations for API callsoAuth2SandboxCredentials[`OAuth2SandboxCredentials`](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/auth/oauth-2-client-credentials-grant.md)The Credentials Setter for OAuth 2 Client Credentials GrantoAuth2ProductionCredentials[`OAuth2ProductionCredentials`](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/auth/oauth-2-client-credentials-grant-1.md)The Credentials Setter for OAuth 2 Client Credentials GrantThe API client can be initialized as follows:

```
use SplititWebApiV3Lib\Environment;
use SplititWebApiV3Lib\Authentication\OAuth2SandboxCredentialsBuilder;
use SplititWebApiV3Lib\Models\OAuthScopeOAuth2SandboxEnum;
use SplititWebApiV3Lib\Authentication\OAuth2ProductionCredentialsBuilder;
use SplititWebApiV3Lib\Models\OAuthScopeOAuth2ProductionEnum;
use SplititWebApiV3Lib\SplititWebApiV3ClientBuilder;

$client = SplititWebApiV3ClientBuilder::init()
    ->oAuth2SandboxCredentials(
        OAuth2SandboxCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthClientSecret'
        )
            ->oAuthScopes(
                [
                    OAuthScopeOAuth2SandboxEnum::API_V3
                ]
            )
    )
    ->oAuth2ProductionCredentials(
        OAuth2ProductionCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthClientSecret'
        )
            ->oAuthScopes(
                [
                    OAuthScopeOAuth2ProductionEnum::API_V3
                ]
            )
    )
    ->environment(Environment::PRODUCTION)
    ->build();
```

Environments
------------

[](#environments)

The SDK can be configured to use a different environment for making API calls. Available environments are:

### Fields

[](#fields)

NameDescriptionproduction**Default** Sandboxenvironment2ProductionAuthorization
-------------

[](#authorization)

This API uses the following authentication schemes.

- [`OAuth2-sandbox (OAuth 2 Client Credentials Grant)`](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/auth/oauth-2-client-credentials-grant.md)
- [`OAuth2-production (OAuth 2 Client Credentials Grant)`](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/auth/oauth-2-client-credentials-grant-1.md)

List of APIs
------------

[](#list-of-apis)

- [Installment Plan](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/controllers/installment-plan.md)

SDK Infrastructure
------------------

[](#sdk-infrastructure)

### Configuration

[](#configuration)

- [ProxyConfigurationBuilder](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/proxy-configuration-builder.md)

### HTTP

[](#http)

- [HttpRequest](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/http-request.md)
- [HttpResponse](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/http-response.md)

### Utilities

[](#utilities)

- [ApiException](https://www.github.com/Splitit/PHP-SDK/tree/0.0.51/doc/api-exception.md)

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance85

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~72 days

Total

5

Last Release

79d ago

Major Versions

0.0.51 → 1.0.52025-09-01

1.0.5 → 2.0.102026-04-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46497836?v=4)[Splitit](/maintainers/Splitit)[@Splitit](https://github.com/Splitit)

---

Top Contributors

[![erellindzen](https://avatars.githubusercontent.com/u/39327972?v=4)](https://github.com/erellindzen "erellindzen (12 commits)")[![SamielSut](https://avatars.githubusercontent.com/u/72549362?v=4)](https://github.com/SamielSut "SamielSut (2 commits)")[![splitit-secops](https://avatars.githubusercontent.com/u/159455946?v=4)](https://github.com/splitit-secops "splitit-secops (2 commits)")

---

Tags

sdkpaymentsapi v3splititinstallmetns

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/splitit-dev-splitit-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/splitit-dev-splitit-php-sdk/health.svg)](https://phpackages.com/packages/splitit-dev-splitit-php-sdk)
```

###  Alternatives

[square/square

Use Square APIs to manage and run business including payment, customer, product, inventory, and employee management.

773.9M29](/packages/square-square)[tatter/stripe

Stripe SDK integration for CodeIgniter 4

115.3k](/packages/tatter-stripe)

PHPackages © 2026

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