PHPackages                             izal/tap-payment-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. [Payment Processing](/categories/payments)
4. /
5. izal/tap-payment-php

ActiveLibrary[Payment Processing](/categories/payments)

izal/tap-payment-php
====================

Php SDK for Tap Payment Gateway

0.0.3(8y ago)59603[4 issues](https://github.com/iZaL/tap-payment-php/issues)MITPHPPHP &gt;=5.5.9

Since May 4Pushed 7y ago1 watchersCompare

[ Source](https://github.com/iZaL/tap-payment-php)[ Packagist](https://packagist.org/packages/izal/tap-payment-php)[ RSS](/packages/izal-tap-payment-php/feed)WikiDiscussions master Synced today

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

Tap Payment Php
---------------

[](#tap-payment-php)

[![Packagist License](https://camo.githubusercontent.com/b5924d4b515082b8e54cd79c8ac6f34a2cd87907b0c3e593dd80839d7cb39380/68747470733a2f2f706f7365722e707567782e6f72672f62617272797664682f6c61726176656c2d64656275676261722f6c6963656e73652e706e67)](http://choosealicense.com/licenses/mit/)[![Build Status](https://camo.githubusercontent.com/d615c8e55e15d10c95df7ac048cd10a9a5b0c81adc22e5f817ba086a21082cb8/68747470733a2f2f7472617669732d63692e6f72672f695a614c2f7461702d7061796d656e742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/iZaL/tap-payment-php)

This is a package to integrate [Tap Payments](https://www.tap.company/) with Php.

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

[](#documentation)

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

[](#installation)

Require this package with composer:

```
composer require izal/tap-payment-php
```

### Usage:

[](#usage)

```
$config =
    [
        'ApiKey' => '1tap7',
        'UserName' => 'test',
        'Password' => 'test',
        'MerchantID' => '1014',
        'ErrorURL' => 'http://test.com/error-url'; // optional. default(NULL)
        'PaymentOption' = 'KNET'; // optional. default (ALL)
        'AutoReturn' = 'N'; // optional. default (Y)
        'CurrencyCode' = 'KWD'; // optional. default (KWD)
        'LangCode' = 'EN'; // optional. default(AR)
    ];

/**
*
* set the products that has to be purchased by the customer
*
* required fields (
*     Quantity,
*     TotalPrice,
*     UnitName,
*     UnitDesc,
*     UnitPrice
* )
*
* optional fields (
*    ImgUrl,
*    VndID
* )
*
* note that you dont need to pass currency code in products list, as you are already passing it in the config.
*
*/

$products =
    [
        [
            'Quantity' => '1',
            'TotalPrice' => '500',
            'UnitName' => 'Product Name',
            'UnitDesc' => 'Product Description',
            'UnitPrice' => '500',
        ],
        [
            'Quantity' => '2',
            'TotalPrice' => '300',
            'UnitName' => 'Product Name',
            'UnitDesc' => 'Product Description',
            'UnitPrice' => '150',
        ]
    ];

$customer =
    [
        'Email' => 'customer@email.com',
        'Name' => 'Awesome Customer',
        'Mobile' => '9999999',
    ];

// by default the package sets gateway to 'ALL', however, you can pass the below method if you need to set the gateway to other available options (KNET,VISA,MASTER,AMEX)

// optional
$gateway = ['Name' => 'KNET'];

$merchant =
    [
        'ReturnURL' => 'http://test.com/payment/returnurl',
        'ReferenceID' => uniqid(),
    ];

$billing = new IZaL\Tap\TapBilling($config);

$billing->setProducts($products);
$billing->setCustomer($customer);
$billing->setGateway($gateway);
$billing->setMerchant($merchant);

// request for payment url

try {

    $paymentRequest = $billing->requestPayment();

    $response = $paymentRequest->response->getRawResponse();

    $paymentURL = $response->PaymentURL;

    // With the response object, you can redirect the user to the payment page

    // redirect url
    $paymentURL = $response->PaymentURL;

    // reference id
    $paymentReferenceID = $response->ReferenceID;

} catch (\Exception $e) {

    // var_dump($e->getMessage());
    // do something with the error

}
```

read the [official tap documentation](https://www.tap.company/developers) to know all the details of the response object

```

```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance4

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

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 ~66 days

Total

3

Last Release

3211d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/358737?v=4)[samira afzal](/maintainers/afzal)[@afzal](https://github.com/afzal)

---

Top Contributors

[![iZaL](https://avatars.githubusercontent.com/u/6410176?v=4)](https://github.com/iZaL "iZaL (6 commits)")

---

Tags

taptap-paymenttaptap-payment

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/izal-tap-payment-php/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k33](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[chargebee/chargebee-php

ChargeBee API client implementation for PHP

758.3M9](/packages/chargebee-chargebee-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[imdhemy/google-play-billing

Google Play Billing

491.4M5](/packages/imdhemy-google-play-billing)

PHPackages © 2026

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