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

ActiveLibrary[Payment Processing](/categories/payments)

mykholy/laravel-paymob
======================

paymob integration for laravel

1.0.0(3y ago)026MITPHP

Since Jan 3Pushed 3y ago1 watchersCompare

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

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

 Laravel PayMob
 [![Latest Stable Version](https://camo.githubusercontent.com/ee6277d93059490b9fa4a46687c87d1d0d080cf4781afee3d222ec432ddc851c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d796b686f6c792f6c61726176656c2d7061796d6f622e737667)](https://packagist.org/packages/mykholy/laravel-paymob) [![Total Downloads](https://camo.githubusercontent.com/aba3d047e143648ebe900f1a028d251d85d2e56216b31a03604722c1e9d426c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d796b686f6c792f6c61726176656c2d7061796d6f622e737667)](https://packagist.org/packages/mykholy/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 mykholy/laravel-paymob
    ```
- publish the package assets with

    ```
    php artisan vendor:publish --provider="mykholy\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 () {
        mykholy\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 mykholy\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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1225d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/289bcafad4768e7d0d9302dd45236925dae2ad46b2af6607c041f4ad655e1b99?d=identicon)[mykholy](/maintainers/mykholy)

---

Tags

laravelpaymob

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/mykholy-laravel-paymob/health.svg)](https://phpackages.com/packages/mykholy-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)
