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

ActiveLibrary[Payment Processing](/categories/payments)

spacemudd/laravel-tap-payments
==============================

Tap Payment REST API package for Laravel

2.0.1(5y ago)73.3k4MITPHPPHP ^7.1

Since Apr 20Pushed 5y agoCompare

[ Source](https://github.com/spacemudd/laravel-tap-payments)[ Packagist](https://packagist.org/packages/spacemudd/laravel-tap-payments)[ RSS](/packages/spacemudd-laravel-tap-payments/feed)WikiDiscussions master Synced today

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

About
=====

[](#about)

Integration library with

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

[](#installation)

```
composer require "spacemudd/laravel-tap-payments"

```

For older versions of Laravel (&lt;5.5)
---------------------------------------

[](#for-older-versions-of-laravel-55)

Update your `/config/app.php` with:

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

```

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

```

Publishing
----------

[](#publishing)

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

```

Config
======

[](#config)

Update `/config/tap-payment.php` with your info.

Add the following to 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 a charge

[](#creating-a-charge)

```
use Tap\TapPayment\Facade\TapPayment;

public function pay()
{
	try {
		$payment = TapPayment::createCharge();
		$payment->setCustomerName("John Doe");
		$payment->setCustomerPhone("965", "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();
	} catch( \Exception $exception ) {
		// your handling of request failure
	}

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

### Getting an invoice

[](#getting-an-invoice)

```
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

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

3

Last Release

2069d ago

Major Versions

1.0.0 → 2.0.02020-11-03

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20286281?v=4)[Shafiq al-Shaar](/maintainers/spacemudd)[@spacemudd](https://github.com/spacemudd)

---

Top Contributors

[![vanandmkrtchyan](https://avatars.githubusercontent.com/u/10657871?v=4)](https://github.com/vanandmkrtchyan "vanandmkrtchyan (13 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4851.0k](/packages/sebdesign-laravel-viva-payments)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.0k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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