PHPackages                             irakan/paylink - 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. irakan/paylink

ActiveLibrary[API Development](/categories/api)

irakan/paylink
==============

Paylink.sa API PHP library

v1.1.0(5y ago)133.8k↓39.5%MITPHPPHP &gt;=7.2

Since Jan 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/irakan/paylink)[ Packagist](https://packagist.org/packages/irakan/paylink)[ RSS](/packages/irakan-paylink/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Installation via Composer
-------------------------

[](#installation-via-composer)

```
composer require irakan/paylink

```

Usage
-----

[](#usage)

```
$client = new \Paylink\Client();
$client->setVendorId('4444');
$client->setVendorSecret('ABC');
$client->setPersistToken(true); // false by default if not given
$client->setEnvironment('prod'); // testing by default if not given

Or

$client = new \Paylink\Client([
	'vendorId'  =>  '4444',
	'vendorSecret'  =>  'ABC',
	'persistToken'  =>  true, // false by default if not given
	'environment'  =>  'testing', // testing by default if not given
]);

 $data = [
            'amount' => 5,
            'callBackUrl' => 'https://www.example.com',
            'clientEmail' => 'test@gmail.com',
            'clientMobile' => '0500000000',
            'clientName' => 'Zaid Matooq',
            'note' => 'This invoice is for VIP client.',
            'orderNumber' => 'MERCHANT-ANY-UNIQUE-ORDER-NUMBER-123123123',
            'products' => [
                [
                    'description' => 'Brown Hand bag leather for ladies',
                    'imageSrc' => 'http://merchantwebsite.com/img/img1.jpg',
                    'price' => 150,
                    'qty' => 1,
                    'title' => 'Hand bag',
                ],
            ],
        ];

$response = $client->createInvoice($data);
// Get the invoice url from the response => $response['url']

$response = $client->getInvoice($transactionNo);
// Check the invoice status from the response => $response['orderStatus']
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

3

Last Release

1952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4472a4f7490e46243f501d4258159415c1dc93a883f72d89df4e84d6727f3672?d=identicon)[irakan](/maintainers/irakan)

---

Top Contributors

[![irakan](https://avatars.githubusercontent.com/u/61325228?v=4)](https://github.com/irakan "irakan (9 commits)")

---

Tags

apipaymentgatewaypaymerchantpaylink

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/irakan-paylink/health.svg)

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

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