PHPackages                             fena/php-payment-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. fena/php-payment-sdk

ActiveLibrary[Payment Processing](/categories/payments)

fena/php-payment-sdk
====================

SDK for working with Fena payment APIs.

v1.0.4(4y ago)043MITPHP

Since Nov 27Pushed 3y agoCompare

[ Source](https://github.com/fena-co/fena-php-sdk)[ Packagist](https://packagist.org/packages/fena/php-payment-sdk)[ RSS](/packages/fena-php-payment-sdk/feed)WikiDiscussions master Synced 1mo ago

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

Fena PHP Payment SDK
====================

[](#fena-php-payment-sdk)

SDK for working with Fena payment APIs.

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

[](#documentation)

Full documentation can be found at:

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

[](#requirements)

PHP 7.0.0 and later.

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

[](#installation)

You can install the bindings via Composer. Run the following command:

```
composer require fena/php-payment-sdk
```

To use the bindings, use Composer's autoload:

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

Dependencies
------------

[](#dependencies)

- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

Getting Started
---------------

[](#getting-started)

Simple new payment looks like:

```
use Fena\PaymentSDK\Connection;
use Fena\PaymentSDK\Payment;

$connection = Connection::createConnection(
    $integrationId = '8afa74ae9fe8be53db50',
    $integrationSecret = '55d7d5ed-be22-4321-bb3f-aec8524d8be2'
);

$payment = Payment::createPayment(
    $connection,
    $amount = '10.00'
    $reference = 'AA-11',
);

$payment->process();
```

**Optional: Set User or Pre Selected Provider For New Payment**

```
use Fena\PaymentSDK\Connection;
use Fena\PaymentSDK\Payment;
use Fena\PaymentSDK\Provider;
use Fena\PaymentSDK\User;

$connection = Connection::createConnection($terminalId, $terminalSecret);
$payment = Payment::createPayment(
    $connection,
    $amount = '10.00',
    $reference = 'AA-11',
);

$user = User::createUser(
    $email = 'john.doe@test.com',
    $firstName = 'John',
    $lastName = 'Doe',
    $contactNumber = '07000845953'
);
$payment->setUser($user);

$provider = Provider::createProvider(
    $providerId = 'lloyds-bank',
    $sortCode = '123456',
    $accountNumber = '12345678'
);
$payment->setProvider($provider);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.6% 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 ~70 days

Total

5

Last Release

1713d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/db3ea49e55eb6dccc2f84677f8dcce9ba7465646ef49d2abdfec90bcb7a9d1da?d=identicon)[fenalabsltd](/maintainers/fenalabsltd)

---

Top Contributors

[![slfaiz](https://avatars.githubusercontent.com/u/216867818?v=4)](https://github.com/slfaiz "slfaiz (20 commits)")[![alextsepush](https://avatars.githubusercontent.com/u/92297593?v=4)](https://github.com/alextsepush "alextsepush (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18279.6k3](/packages/paypayopa-php-sdk)[yanlongli/app-store-server-api

PHP client for App Store Server API. Manage your customers’ App Store transactions from your server.The App Store Server API is a REST API that you call from your server to request and provide information about your customers' in-app purchases. The App Store signs the transaction and subscription renewal information that this API returns using the JSON Web Signature (JWS) specification.App Store Server API is independent of the app’s installation status on the customer’s devices. The App Store server returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.To request transaction and subscription status information with this API, provide any original transaction identifier that belongs to the customer. The transaction history API responds with a complete list of transactions, 20 at a time, starting with the oldest first. The subscription status API returns the status for all of the customer’s subscriptions, organized by their subscription group identifier.Use the Send Consumption Information endpoint to send information to the App Store when customers request a refund for a consumable in-app purchase, after you receive the CONSUMPTION\_REQUEST App Store server notification. Your data helps inform refund decisions.

2532.0k](/packages/yanlongli-app-store-server-api)[laranex/laravel-myanmar-payments

A Laravel package to deal with Payment Providers from Myanmar

2111.1k](/packages/laranex-laravel-myanmar-payments)

PHPackages © 2026

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