PHPackages                             husseinsayed/laravel-paytabs - 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. husseinsayed/laravel-paytabs

ActiveLibrary

husseinsayed/laravel-paytabs
============================

Laravel Paytabs

015PHP

Since May 1Pushed 3y agoCompare

[ Source](https://github.com/husseinsayed/laravel-paytabs)[ Packagist](https://packagist.org/packages/husseinsayed/laravel-paytabs)[ RSS](/packages/husseinsayed-laravel-paytabs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Paytabs
===============

[](#laravel-paytabs)

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

[](#installation)

Begin by installing this package through Composer. Just run following command to terminal-

```
composer require husseinsayed/laravel-paytabs
```

Once this operation completes the package will automatically be discovered for **Laravel 5.6 and above**, otherwise, the final step is to add the service provider. Open `config/app.php`, and add a new item to the providers array.

```
'providers' => [
	...
	Husseinsayed\Paytabs\PaytabsServiceProvider::class,
],
```

Now add the alias.

```
'aliases' => [
	...
	'Paytabs' => Husseinsayed\Paytabs\Facades\PaytabsFacade::class,
],
```

Don't forget to add your paytabs credentials into your .env file.

```
php artisan vendor:publish --provider="Husseinsayed\Paytabs\PaytabsServiceProvider"
```

Then fill in the credentials in `config/paytabs.php` file if you want instaed of env.

```
PAYTABS_PROFILE_ID=2****
PAYTABS_SERVER_KEY=S6****6D2J-J2Z****H6K-6T2****MW
PAYTABS_CHECKOUT_LANG=en
PAYTABS_CURRENCY=EGP

VERIFY_ROUTE_NAME=payment.verify
```

Example:
--------

[](#example)

### Create Payment Page:

[](#create-payment-page)

```
Route::get('payment/paytabs',  function () {
	$user = auth()->user();
	$result = Paytabs::pay(10.00, $user->id, $user->name, $user->email, $user->phone, [
		'customer_details' => [
			'country' => 'EG',
			'state' => 'C'
		]
	]);
	return $result;
});
```

### Create Recurring Payment :

[](#create-recurring-payment-)

Create Tokenize request in the first payment

```
Route::get('payment/paytabs',  function () {
	$user = auth()->user();
	$result = Paytabs::payRecurring(10.00, $user->id, $user->name, $user->email, $user->phone, [
		'customer_details' => [
			'country' => 'EG',
			'state' => 'C'
		]
	],2);
	return $result;
});
```

```
Route::get('payment/paytabs',  function () {
	$user = auth()->user();
	$recurring_token=$token;//token returned from the previous request
  $recurring_tranRef=$tran_ref;//tran_ref returned from the previous request
	$result = Paytabs::payRecurring(10.00, $user->id, $user->name, $user->email, $user->phone, [
		'customer_details' => [
			'country' => 'EG',
			'state' => 'C'
		]
	],1,'recurring',$recurring_token,$recurring_tranRef);
	return $result;
});
```

### Verify Payment:

[](#verify-payment)

```
Route::get('payment/verify/{ref}',  function ($ref) {
	$result = Paytabs::verify($ref);
	return $result;
});
you will need to exclude your paytabs_response route from CSRF protection
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/14f6034a04568b339e935d82b1f71ab0666d819f591a3c0302c74cb1f09d6629?d=identicon)[husseinsayed](/maintainers/husseinsayed)

---

Top Contributors

[![mtgofa](https://avatars.githubusercontent.com/u/22940727?v=4)](https://github.com/mtgofa "mtgofa (19 commits)")[![maq89](https://avatars.githubusercontent.com/u/9713956?v=4)](https://github.com/maq89 "maq89 (16 commits)")[![danielwaghorn](https://avatars.githubusercontent.com/u/9108635?v=4)](https://github.com/danielwaghorn "danielwaghorn (2 commits)")[![husseinsayed](https://avatars.githubusercontent.com/u/33466971?v=4)](https://github.com/husseinsayed "husseinsayed (1 commits)")

### Embed Badge

![Health badge](/badges/husseinsayed-laravel-paytabs/health.svg)

```
[![Health](https://phpackages.com/badges/husseinsayed-laravel-paytabs/health.svg)](https://phpackages.com/packages/husseinsayed-laravel-paytabs)
```

PHPackages © 2026

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