PHPackages                             paylinksa/php - 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. paylinksa/php

ActiveLibrary[API Development](/categories/api)

paylinksa/php
=============

PHP package for integrating with Paylink payment gateway services.

1.0.0(1y ago)2571MITPHP

Since Sep 24Pushed 1y agoCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Paylink Package
===============

[](#paylink-package)

This package enables seamless integration with the Paylink payment gateway within PHP applications. and provides convenient methods to interact with the Paylink API, facilitating payment processing and related functionalities.

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

[](#installation)

You can install the `paylinksa/php` package via composer. Run the following command in your terminal:

```
composer require paylinksa/php
```

Environment Setup
-----------------

[](#environment-setup)

Create an instance of Paylink based on your environment

- For Testing

```
use Paylink\Paylink;

$paylink = Paylink::test();
```

- For Production

```
use Paylink\Paylink;

$paylink = Paylink::production('API_ID_xxxxxxxxxx', 'SECRET_KEY_xxxxxxxxxx');
```

Methods
-------

[](#methods)

1. **Add Invoice**:

    Add an invoice to the system for payment processing.

    ```
       use Paylink\Models\PaylinkProduct;

       $invoiceDetails = $paylink->addInvoice(
          amount: 250.0,
          clientMobile: '0512345678',
          clientName: 'Mohammed Ali',
          orderNumber: '123456789',
          products: [
             new PaylinkProduct(title: 'item1', price: 5.0, qty: 10),
             new PaylinkProduct(title: 'item2', price: 20.0, qty: 10)
          ],
          callBackUrl: 'https://example.com',
       );
    ```
2. **Get Invoice**

    Retrieve invoice details.

    ```
       $invoiceDetails = $paylink->getInvoice(transactionNo: '1714289084591');

       // $invoiceDetails->orderStatus;
       // $invoiceDetails->transactionNo;
       // $invoiceDetails->url;
       // ...
    ```
3. **Cancel Invoice**

    Cancel an existing invoice initiated by the merchant.

    ```
       $paylink->cancelInvoice(transactionNo: '1714289084591'); // true-false
    ```

Examples:
---------

[](#examples)

- [Paylink Payment Examples](Examples/PaymentExamples.php)

For detailed usage instructions, refer to the [Paylink Payment Documentation](docs/Paylink.md)

---

Support
-------

[](#support)

If you encounter any issues or have questions about the Paylink Package, please [contact us](https://paylink.sa/).

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

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

601d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f12e0fabd4b4de02155b5792a38488336f6bde34d8aef4c01978f8804889840?d=identicon)[SultanAlgarbi](/maintainers/SultanAlgarbi)

---

Tags

phpapisdkpackagepaymentintegrationpayment gatewaypaylink

### Embed Badge

![Health badge](/badges/paylinksa-php/health.svg)

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

###  Alternatives

[checkout/checkout-sdk-php

Checkout.com SDK for PHP

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

wallee SDK for PHP

12354.2k11](/packages/wallee-sdk)[musheabdulhakim/gohighlevel-php

php sdk for gohighlevel api

151.1k](/packages/musheabdulhakim-gohighlevel-php)

PHPackages © 2026

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