PHPackages                             paga/paga-connect - 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. paga/paga-connect

ActiveLibrary[Payment Processing](/categories/payments)

paga/paga-connect
=================

Paga Connect is a merchant library for Paga business clients that want to have a seamless integration with Paga without the need to require their users to always approve transactions. Users give permissions and approve the first time and then subsequent transactions are performed on behalf of the user.

v1.0.4(5y ago)031MITPHPPHP &gt;=5.3.3

Since May 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Paga-Developer-Community/paga-connect-library)[ Packagist](https://packagist.org/packages/paga/paga-connect)[ RSS](/packages/paga-paga-connect/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (6)Used By (0)

PagaConnect PHP API Library v1.0.3
==================================

[](#pagaconnect-php-api-library-v103)

Connect Services exposed by the library
---------------------------------------

[](#connect-services-exposed-by-the-library)

- getAccessToken
- merchantPayment
- moneyTransfer
- getUserDetails

For more information on the services listed above, visit the [Paga DEV website](https://developer-docs.paga.com/docs/php-library)

How to use
----------

[](#how-to-use)

`composer require paga/paga-connect`

```
require_once __DIR__ .'/vendor/autoload.php'

$pagaConnect = PagaConnectClient::builder()
                    ->setPrincipal("")
                    ->setCredential("")
                    ->setRedirectUri("")
                    ->setScope(array('USER_DEPOSIT_FROM_CARD','MERCHANT_PAYMENT','USER_DETAILS_REQUEST'))
                    ->setUserData(array('FIRST_NAME','LAST_NAME','USERNAME','EMAIL'))
                    ->setIsTest(true)
                    ->build();

```

As shown above, you set the principal and credential given to you by Paga, If you pass true as the value for setIsTest(), the library will use the test url as the base for all calls. Otherwise setting it to false will use the live url value you **pass** as the base.

### Connect Service Functions

[](#connect-service-functions)

**Merchant Payments**

This is the operation executed to make a payment to you on behalf of the customer. To make use of this function, call the getAccessToken inside the ConnectClient which will return a JSONObject with the access token which will be used to complete payment.

To get Access tokens, Use the authorization code gotten from the call to the backend :

```
$token_data = $pagaConnect->getAccessToken($authorization_code);

```

Access Token is used in making merchant payment like this:

```
$payment_data = $pagaConnect->merchantPayment( $token_data, "ref-12345", 500, 7101, "1wxew", "NGN");

```

**Money Transfer**

This operation allows you to credit a user's paga account. To make use of this function, call the moneyTransfer inside the ConnectClient which will return a JSONObject.

```
$result = $pagaConnect ->moneyTransfer( $token_data, "ref123", "2200", "08184361000", "yes");

```

**Get User Details**

This Operation allows the client to get the user's personal details. The data requested is included in the authentication and authorization request in the data parameter. Additionally, the scope parameter must contain the USER\_DETAILS\_REQUEST option. To make use of this function, call the getUserDetails inside the ConnectClient which will return a JSONObject with user details.

```
$result = $pagaConnect ->getUserDetails( $token_data, "ref123");

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.1% 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 ~6 days

Total

5

Last Release

2172d ago

### Community

Maintainers

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

---

Top Contributors

[![nnamdi16](https://avatars.githubusercontent.com/u/22728994?v=4)](https://github.com/nnamdi16 "nnamdi16 (11 commits)")[![pagadevcomm](https://avatars.githubusercontent.com/u/57805534?v=4)](https://github.com/pagadevcomm "pagadevcomm (7 commits)")

### Embed Badge

![Health badge](/badges/paga-paga-connect/health.svg)

```
[![Health](https://phpackages.com/badges/paga-paga-connect/health.svg)](https://phpackages.com/packages/paga-paga-connect)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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