PHPackages                             alaa-elsaid/laravel-tap-payments - 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. alaa-elsaid/laravel-tap-payments

ActiveLibrary[Payment Processing](/categories/payments)

alaa-elsaid/laravel-tap-payments
================================

Tap Payment REST API package for Laravel &gt;= 5

v1.0.1(1y ago)041MITPHPPHP &gt;=7.1

Since Jun 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/alaa-hany-elsaid/laravel-tap-payments)[ Packagist](https://packagist.org/packages/alaa-elsaid/laravel-tap-payments)[ RSS](/packages/alaa-elsaid-laravel-tap-payments/feed)WikiDiscussions main Synced 1mo ago

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

Tap Payment package for Laravel
===============================

[](#tap-payment-package-for-laravel)

Laravel package for Supports Laravel 5.5 and above

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

[](#installation)

Simply run

```
composer require "alaa-elsaid/laravel-tap-payments"

```

For laravel &gt;=5.5 that's all. This package supports Laravel new Package Discovery.

Otherwise you need to open up `/config/app.php` and add the service provider to your `providers` array.

```
'providers' => [
	\Alaa\TapPayment\TapPaymentServiceProvider::class
]
```

Now add the alias.

```
'aliases' => [
	'TapPayment' => \Alaa\TapPayment\Facade\TapPayment::class
]
```

Configuration
-------------

[](#configuration)

To publish config run

```
php artisan vendor:publish --provider="Alaa\TapPayment\TapPaymentServiceProvider"

```

and modify the config file with your own information. File is located in `/config/tap-payment.php`

you can use this environment variables in your `.env` file

```
TAP_PAYMENT_API_KEY=your_api_key

```

Current version Functions
-------------------------

[](#current-version-functions)

- `TapPayment::createCharge()` - Creating an ApiInvoice
- `TapPayment::findCharge($id)` - Finding an ApiInvoice by ID

Usage example
-------------

[](#usage-example)

### Creating Charge(make payment)

[](#creating-chargemake-payment)

```
use Alaa\TapPayment\Facade\TapPayment;

public function pay()
{
	try{

		$payment = TapPayment::createCharge();

		$payment->setCustomerName( "John Doe" );

		$payment->setCustomerPhone( "123456789" );

		$payment->setDescription( "Some description" );

		$payment->setAmount( 123 );

		$payment->setCurrency( "KWD" );

		$payment->setSource( "src_kw.knet" );

		$payment->setRedirectUrl( "https://example.com" );

		$payment->setPostUrl( "https://example.com" ); // if you are using post request to handle payment updates

		$payment->setMetaData( [ 'package' => json_encode( $package ) ] ); // if you want to send metadata

		$invoice = $payment->pay();
		$invoice->getPaymentUrl(); // get the payment url to redirect the user to it.

	} catch( \Exception $exception ){
		// your handling of request failure
	}

    $payment->isSuccess() // check if TapPayment has successfully handled request.
}
```

### Find ApiInvoice

[](#find-apiinvoice)

```
public function check( $id )
{
	try{

		 $invoice = TapPayment::findCharge( $id );;

	 } catch( \Exception $exception ){
		// your handling of request failure
	}
	$invoice->checkHash($request->header('Hashstring')); // check hashstring to make sure that request comes from Tap
	$invoice->isSuccess(); // check if invoice is paid
	$invoice->isInitiated(); // check if invoice is unpaid yet
}
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

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

Total

2

Last Release

695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d553b830653f90ed7e6040c184d3ca29dc4a587c40f153a10dae608228f749e?d=identicon)[Alaa-Hany](/maintainers/Alaa-Hany)

---

Top Contributors

[![alaa-hany-elsaid](https://avatars.githubusercontent.com/u/62419181?v=4)](https://github.com/alaa-hany-elsaid "alaa-hany-elsaid (2 commits)")

### Embed Badge

![Health badge](/badges/alaa-elsaid-laravel-tap-payments/health.svg)

```
[![Health](https://phpackages.com/badges/alaa-elsaid-laravel-tap-payments/health.svg)](https://phpackages.com/packages/alaa-elsaid-laravel-tap-payments)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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