PHPackages                             engalalfy/laravel-payments - 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. engalalfy/laravel-payments

ActiveLibrary[Payment Processing](/categories/payments)

engalalfy/laravel-payments
==========================

A unified Laravel package for multiple payment gateways (Paymob, Kashier, etc.) with easy integration and extensibility.

v1.0.23(2mo ago)1130[2 PRs](https://github.com/EngALAlfy/laravel-payments/pulls)MITPHPPHP ^8.4|^8.2CI passing

Since Apr 6Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/EngALAlfy/laravel-payments)[ Packagist](https://packagist.org/packages/engalalfy/laravel-payments)[ Docs](https://github.com/engalalfy/laravel-payments)[ GitHub Sponsors]()[ RSS](/packages/engalalfy-laravel-payments/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (28)Versions (28)Used By (0)

Laravel Payments
================

[](#laravel-payments)

A unified Laravel package for multiple payment gateways (Paymob, Kashier, etc.) with easy integration and extensibility. Simplify your payment processing with a consistent API across different payment providers.

[![Latest Version on Packagist](https://camo.githubusercontent.com/9dae11ed3d12e8164c97d7ebff3cb3bb1dc708de12ebbd60816c74d10324fa96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e67616c616c66792f6c61726176656c2d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/engalalfy/laravel-payments)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a5ae77fa559910c588362f7c409e9a03f5e3398a31e5cdf6a9625dce1658571c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e67616c616c66792f6c61726176656c2d7061796d656e74732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/engalalfy/laravel-payments/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/bb35f6ad92cdea681e5e32eb2ae346e875263f30a55da4352aa43c105af548ac/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f656e67616c616c66792f6c61726176656c2d7061796d656e74732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/engalalfy/laravel-payments/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/d9bea030523571efe116533856a64ef95c8e890d129d35a0e74ca91433e135fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e67616c616c66792f6c61726176656c2d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/engalalfy/laravel-payments)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![Issues](https://camo.githubusercontent.com/d6db8454ca71c2a5d7f051be770f110c69bb14c05a044b0d020abae5f453e921/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f656e67616c616c66792f6c61726176656c2d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://github.com/engalalfy/laravel-payments/issues)[![Pull Requests](https://camo.githubusercontent.com/d880a23b5c6b6203d8c32b41aae981ca380cb7a5d5e7df2713e73e53189f337e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f656e67616c616c66792f6c61726176656c2d7061796d656e74732e7376673f7374796c653d666c61742d737175617265)](https://github.com/engalalfy/laravel-payments/pulls)

Features
--------

[](#features)

- **Unified API**: Work with multiple payment gateways using a consistent interface
- **Extensible**: Easily add support for new payment gateways
- **Provider Agnostic**: Switch between payment providers without changing your application code
- **Event Driven**: Leverage Laravel's event system for payment notifications
- **Thorough Documentation**: Well-documented API with examples for each supported gateway
- **Robust Testing**: Comprehensive test suite for reliability

Package Structure
-----------------

[](#package-structure)

```
laravel-payments/
├── config/                  # Configuration files
├── database/
│   └── migrations/          # Database migrations
├── resources/
│   └── views/               # Views for payment pages if needed
├── src/
│   ├── Facades/             # Laravel Facades
│   ├── Gateways/            # Payment gateway implementations
│   │   ├── Paymob/
│   │   ├── Kashier/
│   │   └── ...
│   ├── Contracts/           # Interfaces defining the API
│   ├── Models/              # Eloquent models
│   ├── Events/              # Payment-related events
│   ├── Exceptions/          # Custom exceptions
│   └── LaravelPayments.php  # Main package class
└── tests/                   # Test suite

```

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

[](#installation)

You can install the package via composer:

```
composer require engalalfy/laravel-payments
```

After installation, publish the configuration and migrations:

```
php artisan vendor:publish --tag="laravel-payments-config"
```

Configuration
-------------

[](#configuration)

Configure your payment gateways in the published config file:

```
// config/laravel-payments.php

return [
    'default' => env('PAYMENT_GATEWAY', 'paymob'),

    'gateways' => [
        'paymob' => [
            'api_key' => env('PAYMOB_API_KEY'),
            'integration_id' => env('PAYMOB_INTEGRATION_ID'),
            'iframe_id' => env('PAYMOB_IFRAME_ID'),
            // Additional Paymob configuration...
        ],

        'kashier' => [
            'merchant_id' => env('KASHIER_MERCHANT_ID'),
            'api_key' => env('KASHIER_API_KEY'),
            // Additional Kashier configuration...
        ],

        // Additional payment gateways...
    ],

    'currency' => env('PAYMENT_CURRENCY', 'EGP'),
    'callback_url' => env('PAYMENT_CALLBACK_URL', '/payment/callback'),
];
```

Basic Usage
-----------

[](#basic-usage)

Testing
-------

[](#testing)

The package comes with a comprehensive test suite:

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details on how to contribute to this package.

### Reporting Issues

[](#reporting-issues)

If you encounter any issues, please [open an issue](https://github.com/engalalfy/laravel-payments/issues/new) on GitHub.

### Pull Requests

[](#pull-requests)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Support the Development
-----------------------

[](#support-the-development)

If you find this package helpful, consider supporting its development:

[![PayPal](https://camo.githubusercontent.com/b811c9741e973ac713b2a33c9bfd025f0fad57a7b1d57a29d03b30badb6d04f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d3030343537433f7374796c653d666f722d7468652d6261646765266c6f676f3d70617970616c266c6f676f436f6c6f723d7768697465)](https://paypal.me/islamalalfy)

Credits
-------

[](#credits)

- [Islam H ALAlfy](https://github.com/EngAlalfy)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance87

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~14 days

Recently: every ~1 days

Total

24

Last Release

63d ago

### Community

Maintainers

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

---

Top Contributors

[![EngALAlfy](https://avatars.githubusercontent.com/u/61562847?v=4)](https://github.com/EngALAlfy "EngALAlfy (82 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

laravellaravel-paymentsIslam H ALAlfy

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/engalalfy-laravel-payments/health.svg)

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[danestves/laravel-polar

A package to easily integrate your Laravel application with Polar.sh

7812.3k](/packages/danestves-laravel-polar)[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)[creagia/laravel-redsys

Laravel Redsys Payments Gateway

2013.6k](/packages/creagia-laravel-redsys)

PHPackages © 2026

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