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 today

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 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

1761d 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

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k42](/packages/civicrm-civicrm-core)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

40952.8k6](/packages/cybersource-rest-client-php)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18304.2k5](/packages/paypayopa-php-sdk)

PHPackages © 2026

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