PHPackages                             ontraport/sdk-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. [API Development](/categories/api)
4. /
5. ontraport/sdk-php

ActiveLibrary[API Development](/categories/api)

ontraport/sdk-php
=================

ONTRAPORT PHP Library

v1.2.2(3y ago)19360.5k—5%11[2 PRs](https://github.com/Ontraport/SDK-PHP/pulls)1MITPHPPHP &gt;=5.3.2

Since May 25Pushed 3y ago16 watchersCompare

[ Source](https://github.com/Ontraport/SDK-PHP)[ Packagist](https://packagist.org/packages/ontraport/sdk-php)[ Docs](https://api.ontraport.com)[ RSS](/packages/ontraport-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (21)Used By (1)

ONTRAPORT PHP library
=====================

[](#ontraport-php-library)

Requirements
------------

[](#requirements)

PHP version 5.3.2 or greater.

Documentation
-------------

[](#documentation)

Visit our [API documentation](https://api.ontraport.com/doc) page for detailed usage information and code examples.

Composer
--------

[](#composer)

If you are using composer, you can install our SDK on the command line by entering

```
composer require ontraport/sdk-php

```

You can also manually add it to your `composer.json` file:

```
{
    "require": {
        "ontraport/sdk-php": "*"
    }
}

```

To use the library, include Composer's autoload in your scripts:

```
require_once('vendor/autoload.php');

```

Manual Installation
-------------------

[](#manual-installation)

If you are not using composer, you can download the latest version. Make sure to include the Ontraport.php file to use this library in your code:

```
require_once('path/to/src/Ontraport.php');

```

Namespacing
-----------

[](#namespacing)

Our API wrapper is namespaced. This helps you to avoid collisions between the classes and functions in our wrapper and external classes and functions which might have the same name. This means if you want to create an instance of the Ontraport class, you need to either import the OntraportAPI namespace:

```
use OntraportAPI\Ontraport;

```

or use a qualified name:

```
$client = new OntraportAPI\Ontraport("2_AppID_12345678","Key5678")

```

[Click here](http://php.net/manual/en/language.namespaces.php) for more about namespacing in PHP.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~216 days

Recently: every ~379 days

Total

10

Last Release

1328d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76b7a1d414b1041d80a5a63f9790272b8deb7a9cf3f72db7aaa854e46e6619c1?d=identicon)[arielle-ontraport](/maintainers/arielle-ontraport)

![](https://www.gravatar.com/avatar/fceb84f7e3cf92da840d3536a2da0aa2d53de531f8045624c87f4d54f593f72e?d=identicon)[ontraport-engineering](/maintainers/ontraport-engineering)

---

Top Contributors

[![akent-op](https://avatars.githubusercontent.com/u/28546309?v=4)](https://github.com/akent-op "akent-op (38 commits)")[![abai-op](https://avatars.githubusercontent.com/u/41972177?v=4)](https://github.com/abai-op "abai-op (6 commits)")[![jrebs](https://avatars.githubusercontent.com/u/4203789?v=4)](https://github.com/jrebs "jrebs (5 commits)")[![jembar-op](https://avatars.githubusercontent.com/u/98348713?v=4)](https://github.com/jembar-op "jembar-op (1 commits)")

---

Tags

apiontraportphpsdkphpsdklibraryontraport

### Embed Badge

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

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[fabian-beiner/todoist-php-api-library

A PHP client library that provides a native interface to the official Todoist REST API.

4810.8k](/packages/fabian-beiner-todoist-php-api-library)[kubrey/amazon-advertising-api-php-sdk

Amazon Advertising API Client Library

1013.4k](/packages/kubrey-amazon-advertising-api-php-sdk)[lai3221/amzn_adv_api_php

Amazon Advertising API Client Library V3.0

141.4k](/packages/lai3221-amzn-adv-api-php)

PHPackages © 2026

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