PHPackages                             magedahmad/larapayment - 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. magedahmad/larapayment

ActiveLibrary

magedahmad/larapayment
======================

A package to handle different payment gateways

v0.2(5y ago)128MITPHP

Since Jan 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/MagedAhmad/LaraPayment)[ Packagist](https://packagist.org/packages/magedahmad/larapayment)[ Docs](https://github.com/magedahmad/larapayment)[ RSS](/packages/magedahmad-larapayment/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

Payment integrations for Laravel projects
=========================================

[](#payment-integrations-for-laravel-projects)

[![Total Downloads](https://camo.githubusercontent.com/d6a64081077b83927aa52ecb06f101a6c108a962fb1b578203d25f387f69c015/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6167656461686d61642f6c6172617061796d656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/magedahmad/larapayment) [![Latest Version](https://camo.githubusercontent.com/9e7769302b78c22ff1756cee47023b07cd9a17b0eefc838b96b8cc3ac92f41cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f7461672f4d6167656441686d61642f4c6172615061796d656e743f736f72743d73656d766572266c6162656c3d76657273696f6e)](https://github.com/MagedAhmad/LaraPayment/)[![Latest Version](https://camo.githubusercontent.com/ef0a7e432f5af9a3aeea3d131cdc47b637a42468566ca9c5301d968681498221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6167656461686d61642f6c6172617061796d656e743f6c6162656c3d76657273696f6e)](https://packagist.org/packages/magedahmad/larapayment/)[![Development Branch](https://camo.githubusercontent.com/9768cb5748ce6e0bdbaf5eb8e5780aede295cc188d961beffffa0d625a522b59/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646576656c6f706d656e745f6272616e63682d6d61737465722d677265656e2e737667)](https://github.com/MagedAhmad/LaraPayment/tree/master/)[![Made With](https://camo.githubusercontent.com/3994cc4f86157eaf13cc05557f8edaffcfad5ab2810bc3530a38f7eb5629f8ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164655f776974682d7068702d626c7565)](/docs/requirements/)

A package to handle different payment gateways

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

[](#installation)

You can install the package via composer:

```
composer require magedahmad/larapayment
```

After installing, register the service provider inside config/app.php

```
MagedAhmad\LaraPayment\LaraPaymentServiceProvider::class,
```

in terminal publish the migration and config file with

```
php artisan vendor:publish --provider="MagedAhmad\LaraPayment\LaraPaymentServiceProvider
```

and migrate the db table

```
php artisan migrate
```

in `app/config/larapament.php` you need to modify the API keys

Usage
-----

[](#usage)

`paymob` instructions

```
use MagedAhmad\LaraPayment\LaraPayment;

$payment = new LaraPayment();

// payment gateway = paymob
// amount to pay in usd = 100$
$payment->make_payment("paymob", 100, $items);
```

default currency is `USD`, if you want you can change currency in constructor.

```
$payment = new LaraPayment('EGP');
```

Response would return the `iframe` that you need to include in your blade file

after completing transaction you would be redirected to a route you specify in [paymob itself](https://docs.paymob.com/docs/transaction-callbacks)

in the function handling the callback url you need to verify the transaction.

example code:

```
public function receive(Request $request)
{
    $laraPayment = new LaraPayment();

    $laraPayment->verify_paymob($request->order, $request->all()); // return status
}
```

And That's it !

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Maged Ahmed](https://github.com/MagedAhmad)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1922d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b927ec8d49518e7b96a8ca16f29d3f65bb9eb0de32d2a35dc3ee0aa92bce6170?d=identicon)[MagedAhmad](/maintainers/MagedAhmad)

---

Top Contributors

[![MagedAhmad](https://avatars.githubusercontent.com/u/12874132?v=4)](https://github.com/MagedAhmad "MagedAhmad (12 commits)")

---

Tags

magedahmadlarapayment

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/magedahmad-larapayment/health.svg)

```
[![Health](https://phpackages.com/badges/magedahmad-larapayment/health.svg)](https://phpackages.com/packages/magedahmad-larapayment)
```

PHPackages © 2026

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