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

ActiveLibrary

samibettayeb/paytabs-laravel
============================

Paytabs Laravel

1.1.0(5y ago)111LGPL-3.0PHP

Since Jul 8Pushed 5y agoCompare

[ Source](https://github.com/SAMIBETTAYEB/paytabs-laravel)[ Packagist](https://packagist.org/packages/samibettayeb/paytabs-laravel)[ RSS](/packages/samibettayeb-paytabs-laravel/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

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

[](#paytabs-laravel)

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

[](#installation)

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

```
composer require SAMIBETTAYEB/paytabs-laravel
```

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' => [
	...
	Damas\Paytabs\PaytabsServiceProvider::class,
],
```

Now add the alias.

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

Example:
--------

[](#example)

### Create Payment Page:

[](#create-payment-page)

```
Route::get('/paytabs_payment', function () {
    $pt = Paytabs::getInstance("MERCHANT_EMAIL", "SECRET_KEY");
	$result = $pt->create_pay_page(array(
		"merchant_email" => "MERCHANT_EMAIL",
		'secret_key' => "SECRET_KEY",
		'title' => "John Doe",
		'cc_first_name' => "John",
		'cc_last_name' => "Doe",
		'email' => "customer@email.com",
		'cc_phone_number' => "973",
		'phone_number' => "33333333",
		'billing_address' => "Juffair, Manama, Bahrain",
		'city' => "Manama",
		'state' => "Capital",
		'postal_code' => "97300",
		'country' => "BHR",
		'address_shipping' => "Juffair, Manama, Bahrain",
		'city_shipping' => "Manama",
		'state_shipping' => "Capital",
		'postal_code_shipping' => "97300",
		'country_shipping' => "BHR",
		"products_per_title"=> "Mobile Phone",
		'currency' => "BHD",
		"unit_price"=> "10",
		'quantity' => "1",
		'other_charges' => "0",
		'amount' => "10.00",
		'discount'=>"0",
		"msg_lang" => "english",
		"reference_no" => "1231231",
		"site_url" => "https://your-site.com",
		'return_url' => "https://www.mystore.com/paytabs_api/result.php",
		"cms_with_version" => "API USING PHP"
	));

    	if($result->response_code == 4012){
	    return redirect($result->payment_url);
        }
        return $result->result;
});
```

### Verify Payment:

[](#verify-payment)

```
Route::post('/paytabs_response', function(Request $request){
    $pt = Paytabs::getInstance("MERCHANT_EMAIL", "SECRET_KEY");
    $result = $pt->verify_payment($request->payment_reference);
    if($result->response_code == 100){
        // Payment Success
    }
    return $result->result;
});

you will need to exclude your paytabs_response route from CSRF protection
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~759 days

Total

2

Last Release

2106d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/9580834?v=4)[Sami Bettayeb - سامي بالطيب](/maintainers/SAMIBETTAYEB)[@SAMIBETTAYEB](https://github.com/SAMIBETTAYEB)

---

Top Contributors

[![maq89](https://avatars.githubusercontent.com/u/9713956?v=4)](https://github.com/maq89 "maq89 (16 commits)")[![SAMIBETTAYEB](https://avatars.githubusercontent.com/u/9580834?v=4)](https://github.com/SAMIBETTAYEB "SAMIBETTAYEB (9 commits)")[![danielwaghorn](https://avatars.githubusercontent.com/u/9108635?v=4)](https://github.com/danielwaghorn "danielwaghorn (2 commits)")

### Embed Badge

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

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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