PHPackages                             optimalpayments/optimal-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. optimalpayments/optimal-php-sdk

ActiveLibrary[Payment Processing](/categories/payments)

optimalpayments/optimal-php-sdk
===============================

PHP SDK for the Optimal Payments API

1.0(11y ago)5155.6k↓39.7%9[4 PRs](https://github.com/OptimalPayments/PHP_SDK/pulls)MITPHPPHP &gt;=5.3.0

Since Mar 10Pushed 8y ago5 watchersCompare

[ Source](https://github.com/OptimalPayments/PHP_SDK)[ Packagist](https://packagist.org/packages/optimalpayments/optimal-php-sdk)[ RSS](/packages/optimalpayments-optimal-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Optimal Payments PHP SDK
========================

[](#optimal-payments-php-sdk)

---

Installation
------------

[](#installation)

### Windows

[](#windows)

On Windows, you will be required set the following environment variable that points to a valid CA certificate on your system in order to perform the https operations:

```
SSL_CERT_FILE

```

Alternatively, you can make a call in your code to the following static method using the path to your CA certificate:

```
\OptimalPayments\OptimalApiClient::setCACertPath(_PATH_TO_CERTIFICATE_);

```

This SDK requires PHP &gt;= 5.3 and cURL to be installed.

This SDK requires that you can complete an SSL connection using cURL to the API endpoints from within your hosting environment . Any cURL errors returned will require you to complete connectivity troubleshooting within your hosting environment. See cURL error codes for assistance:

Usage
-----

[](#usage)

### Running Sample Code

[](#running-sample-code)

Update the following file with your credentials and account number:

> /sample/config.php

#### PHP 5.3

[](#php-53)

Create a new virtual host in your local web server with the sample directory within your SDK directory as the webroot. Open your web browser and navigate to the URL specified in the virtual host configuration.

#### PHP 5.4+

[](#php-54)

In your command-line interface, navigate to the /sample directory inside of the SDK directory and type the following command:

```
php -S localhost:8081

```

Open your web browser and navigate to the following URL:

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity40

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

4087d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9705b99e9c47e8f9cb713e394b4a2f4905a814fab40b930462b2cec7229fbb03?d=identicon)[torchello](/maintainers/torchello)

---

Top Contributors

[![asawarivaidya](https://avatars.githubusercontent.com/u/22954853?v=4)](https://github.com/asawarivaidya "asawarivaidya (1 commits)")[![OptimalPayments](https://avatars.githubusercontent.com/u/8872738?v=4)](https://github.com/OptimalPayments "OptimalPayments (1 commits)")

---

Tags

sdkpayment processingpaymentnetbanxoptimal

### Embed Badge

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

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

###  Alternatives

[sumup/sumup-ecom-php-sdk

SumUp PHP SDK

51277.1k1](/packages/sumup-sumup-ecom-php-sdk)[yandex-money/yandex-money-sdk-php

Yandex.Money API SDK for PHP

105167.4k2](/packages/yandex-money-yandex-money-sdk-php)[cryptonator/merchant-php-sdk

Cryptonator.com Merchant API SDK for PHP

2713.7k](/packages/cryptonator-merchant-php-sdk)

PHPackages © 2026

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