PHPackages                             ctf0/laravel-paymob - 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. ctf0/laravel-paymob

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

ctf0/laravel-paymob
===================

paymob integration for laravel

v2.0.0(3y ago)25425MITPHP

Since Dec 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ctf0/laravel-paymob)[ Packagist](https://packagist.org/packages/ctf0/laravel-paymob)[ Docs](https://github.com/ctf0/laravel-paymob)[ Patreon](https://www.patreon.com/ctf0)[ RSS](/packages/ctf0-laravel-paymob/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

 Laravel PayMob
 [![Latest Stable Version](https://camo.githubusercontent.com/eb5e765d6d31aa954ae11f86d71bee77ecbb6dc0ca40b1588a1144e7fcd425aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f637466302f6c61726176656c2d7061796d6f622e737667)](https://packagist.org/packages/ctf0/laravel-paymob) [![Total Downloads](https://camo.githubusercontent.com/efe4f7e07ebf006b2b50ab5d0429c04ea67e512edff60c311adbaa56a2ac9043/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f637466302f6c61726176656c2d7061796d6f622e737667)](https://packagist.org/packages/ctf0/laravel-paymob)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#----laravel-paymob---------)

[Paymob](https://paymob.com/en) integration for laravel.

> Currently Supported
>
> - [Card Payments](https://acceptdocs.paymobsolutions.com/docs/card-payments)
> - [Mobile Wallets](https://acceptdocs.paymobsolutions.com/docs/mobile-wallets)

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

[](#installation)

- install the package

    ```
    composer require ctf0/laravel-paymob
    ```
- publish the package assets with

    ```
    php artisan vendor:publish --provider="ctf0\PayMob\PayMobServiceProvider"
    ```

Config
------

[](#config)

- [**config/paymob.php**](./src/config/paymob.php)

Setup
-----

[](#setup)

- add the package routes to your `routes/web.php` ex.

    ```
    Route::group([
        'prefix'     => 'orders',
        'as'         => 'order.',
        'middleware' => 'auth',
    ], function () {
        ctf0\PayMob\PayMobRoutes::routes();
    });
    ```
- add `Billable` to the model you will be billing.
- next add `getBillingData()` which should return all the required fields for the order creation, check [paymob requirements](https://acceptdocs.paymobsolutions.com/docs/accept-standard-redirect) for more info.

    - all the **optional** fields has already been taken care of.

    ```
    use Illuminate\Database\Eloquent\Model;
    use ctf0\PayMob\Integrations\Contracts\Billable;

    class Client extends Model implements Billable
    {
        // ...

        public function getBillingData(): array
        {
            return [
                'email'        => $this->email,
                'first_name'   => $this->first_name,
                'last_name'    => $this->last_name,
                'street'       => $this->address,
                'phone_number' => $this->phone_number,
            ];
        }
    }
    ```

Usage
-----

[](#usage)

### \# Normal

[](#-normal)

- update [`paymob.controller`](./src/config/paymob.php#L4) with your own controller, which should have 3 methods

    > you can check [`DummyController`](./src/Controllers/DummyController.php) for a more detailed overview.

    type@methodreturnGET`checkOut`returns the view where the user will press the checkout btnPOST`process`get the selected payment type &amp; make a request to paymob serverGET`complete`check for the transaction hmac &amp; save it to your server, for more info [check](https://acceptdocs.paymobsolutions.com/docs/transaction-callbacks#transaction-response-callback).

### \# Refund

[](#-refund)

- all you need to is to call `PayMob::refund` and pass to it the `transaction_id` &amp; `amount_in_pounds` that will be refunded, ex.

    > for more info [check](https://acceptdocs.paymobsolutions.com/docs/refund-transaction)

    ```
    PayMob::refund(655, 10);
    ```

### Security

[](#security)

If you discover any security-related issues, please email .

###  Health Score

30

↑

LowBetter than 64% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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 ~310 days

Total

3

Last Release

1344d ago

Major Versions

v1.0.1 → v2.0.02022-09-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/51dbfff65441e32301575f8ac241895817975e754d15574b86f543b33f1961f6?d=identicon)[ctf0](/maintainers/ctf0)

---

Top Contributors

[![ctf0](https://avatars.githubusercontent.com/u/7388088?v=4)](https://github.com/ctf0 "ctf0 (14 commits)")[![Saifallak](https://avatars.githubusercontent.com/u/6053156?v=4)](https://github.com/Saifallak "Saifallak (3 commits)")

---

Tags

laravelpaymob

### Embed Badge

![Health badge](/badges/ctf0-laravel-paymob/health.svg)

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[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)[baklysystems/laravel-paymob

Laravel PayMob online payment gateway package

282.4k](/packages/baklysystems-laravel-paymob)

PHPackages © 2026

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