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

ActiveLibrary[Payment Processing](/categories/payments)

baselrabia/paytabs-with-laravel
===============================

integrate paytabs with laravel

v1.1.0(5y ago)381.3k17[1 issues](https://github.com/baselrabia/paytabs-with-laravel/issues)MITPHPPHP ^7.2

Since Jan 25Pushed 5y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

[![Issues](https://camo.githubusercontent.com/81daf47a666dda8455e3f209470a111da5733f60ce29e184728da44980b2fe5a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f626173656c72616269612f706179746162732d776974682d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/baselrabia/paytabs-with-laravel/issues)[![Stars](https://camo.githubusercontent.com/dd28e939292528175b06779ff42b9f3747d0cd81c465362fff6c6387e6c02d01/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f626173656c72616269612f706179746162732d776974682d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://github.com/baselrabia/paytabs-with-laravel/stargazers)[![Latest Version](https://camo.githubusercontent.com/ed39babc6f0af8dae2ce5f0b14308b35baf92c4e980efee2d52b33f53fb26b3d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f626173656c72616269612f706179746162732d776974682d6c61726176656c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/baselrabia/paytabs-with-laravel/tags)[![Software License](https://camo.githubusercontent.com/bf29906448b0485f0b72cc8c65c563801da823dcca65a936454c9c0b4452a336/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626173656c72616269612f706179746162732d776974682d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Total Downloads](https://camo.githubusercontent.com/02e0e49cb432d8cf06a79e2fb3ded16f2d0c74fb25933e8fbf312c3981e90c61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626173656c72616269612f706179746162732d776974682d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/baselrabia/paytabs-with-laravel)

 [![paytabs Logo](https://camo.githubusercontent.com/41b1baf1900fd7c4f3736f4e60a1c5a7e474a3a5958a21c0dd32b3089fa47fd5/68747470733a2f2f7777772e706179746162732e636f6d2f7365616c732f30332e706e67)](https://camo.githubusercontent.com/41b1baf1900fd7c4f3736f4e60a1c5a7e474a3a5958a21c0dd32b3089fa47fd5/68747470733a2f2f7777772e706179746162732e636f6d2f7365616c732f30332e706e67)

 [![Happy Logo](https://user-images.githubusercontent.com/59374587/95769432-3c361a00-0c8e-11eb-8ce7-9ee9a66f32af.png)](https://user-images.githubusercontent.com/59374587/95769432-3c361a00-0c8e-11eb-8ce7-9ee9a66f32af.png)

Paytabs With Laravel🥳
=====================

[](#paytabs-with-laravel)

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

[](#installation)

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

```
composer require baselrabia/paytabs-with-laravel
```

Once this operation completes the package will automatically be discovered for **Laravel 5.6 and above**,

- Run this line to publish package files in your app

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

- after that fire the migration command

```
php artisan migrate
```

- last step add those two fields in your `.env` file ,edit it's value with your own

```
merchant_email=**************@gmail.com
merchant_secretKey=****************************************************************
```

And make sure to change your `APP_URL`

```
APP_URL=http://localhost:8000
```

Otherwise, the final step is to add the service provider. Open `config/app.php`, and add a new item to the providers array.

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

- Now add the Aliase

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

],
```

what's happining there:
-----------------------

[](#whats-happining-there)

the package publish 3 files

```
1- App/Http/Controllers/PaytabsController.php
2- App/Models/PaytabsInvoice.php
3- config/paytabs.php
```

- you are free to change what you want in the logic of these files {{ Without Deleteing 🧐}}
- the result of success payment will process making a paytabs invoice through the model `App/Models/PaytabsInvoice.php`
- the config file have differnt values for response languague, currancy, email and secert\_key

### the package has 2 routes

[](#the-package-has-2-routes)

### Create Payment Page:

[](#create-payment-page)

```
http://localhost:8000/paytabs_payment
```

which call the function ( `PaytabsController@index` ) by GET Request

### Verify Payment:

[](#verify-payment)

```
http://localhost:8000/paytabs_response
```

the return response from paytabs which call the function ( `PaytabsController@response` ) by Post Request

test card:
----------

[](#test-card)

### Checkout Process Demo

[](#checkout-process-demo)

Please use these ‘test card’ details for your demo

```
Name on Card:  John Doe
Card Number:  4000 0000 0000 0051
Expiry:  02/22  CVV:  111
```

the link for any updates =&gt;

Contributing
============

[](#contributing)

If you think something important is missing or should be different based on your experience, I'd love to hear it! If you have suggestions for improving this package, open an issue with your suggestion.

How to Contribute 💪
-------------------

[](#how-to-contribute-)

```
- Fork the project

- Create a new branch with your changes:
$ git checkout -b my-feature

- Save your changes and create a commit message telling you what you did:
$ git commit -m "feature: My new feature"

- Submit your changes:
$ git push origin my-feature

```

License 📝
---------

[](#license-)

 This repository is under MIT license. You can see the [LICENSE](https://github.com/baselrabia/paytabs-with-laravel/blob/master/LICENSE.TXT) file for more details. 😉

---

> This project was developed with ❤️ by **[@Basel Rabia](https://www.linkedin.com/in/baselrabia/)**
> If it helped you, give it ⭐, it will help me too 😉

[![Linkedin Badge](https://camo.githubusercontent.com/f067d06441c7460c37ff50c4071e51d54fd6bda5546ae1bd7afa1822b79d8a45/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2d426173656c25323052616269612d3239323932393f7374796c653d666c61742d737175617265266c6f676f3d4c696e6b6564696e266c6f676f436f6c6f723d7768697465266c696e6b3d68747470733a2f2f7777772e6c696e6b6564696e2e636f6d2f696e2f626173656c72616269612f)](https://www.linkedin.com/in/baselrabia/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

1931d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27627958?v=4)[Basel Rabia](/maintainers/baselrabia)[@baselrabia](https://github.com/baselrabia)

---

Top Contributors

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

---

Tags

laravelphp

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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