PHPackages                             alalm3i/edfapay-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. [Payment Processing](/categories/payments)
4. /
5. alalm3i/edfapay-laravel

ActiveLibrary[Payment Processing](/categories/payments)

alalm3i/edfapay-laravel
=======================

Laravel's integration with EdfaPay payment gateway

v1.4(1y ago)01.1k[4 PRs](https://github.com/alalm3i/EdfaPay-Laravel/pulls)MITPHPPHP ^8.1|^8.2CI passing

Since Mar 26Pushed 1mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (15)Versions (10)Used By (0)

Laravel's integration with EdfaPay payment gateway
==================================================

[](#laravels-integration-with-edfapay-payment-gateway)

[![Latest Version on Packagist](https://camo.githubusercontent.com/12f0a5fed3f714311f94e58942b3e5b62961c15edeb62891c7f931ec77286dde/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c616c6d33692f656466617061792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alalm3i/edfapay-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/2bd4275d8a99d1b4d910f93bf447569e4e3709617dec8cec6c62c5f07d49a92f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c616c6d33692f656466617061792d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/alalm3i/edfapay-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0cfc4662f8d7e89515eac9b8a41e5e9a36bbc3673ae84025bb44701dc6b23f55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616c616c6d33692f656466617061792d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/alalm3i/edfapay-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/6565113bbb5e8830fc8c06bd5fd008aa9e827809a90a75c66674fd09e5d049f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c616c6d33692f656466617061792d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alalm3i/edfapay-laravel)

This is an easy way to integrate with [EdfaPay](http://edfapay.com) and get payment link correctly.

You can find EdfaPay API documentation [here](https://edfapay.com/api/EdfapayCheckout.html#CallbackNotification)

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

[](#installation)

You can install the package via composer:

```
composer require alalm3i/edfapay-laravel
```

You can publish the config file with:

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

This is the contents of the published config file:

```
return [
    'merchant_key' => env('EDFA_PAY_MERCHANT_KEY', null),
    'merchant_password' => env('EDFA_PAY_PASSWORD', null),
    'return_url' => env('EDFA_PAY_RETURN_URL', null),
];
```

Usage
-----

[](#usage)

```
 $response = \alalm3i\EdfaPay\Facades\EdfaPay::paymentURL([
        'order_id' => 'a001',
        'order_amount' => '10',
        'order_description' => 'description',
        'payer_first_name' => 'customer',
        'payer_last_name' => 'name',
        'payer_email' => 'nab@eee.com',
        'payer_mobile' => '966565555555',
        'payer_ip_address' => '176.44.76.222',
    ])->generate();

//$response = https://pay.edfapay.com/merchant/checkout/.....
```

This package cover generating the payment link only.

### ToDo

[](#todo)

1. Generate payment URL
2. Handle payment notifications
3. Handle route for notification webhook

You can extend `alalm3i\EdfaPay\EdfaPayNotification` class to utilize it as a wrapper with some useful getters for notification callback payload. Just initialize it with the response object received from EdfaPay.

Testing
-------

[](#testing)

```
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.

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [Nabeel Alalmai](https://github.com/alalm3i)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance64

Regular maintenance activity

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

5

Last Release

708d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/94e293b2d2cdb3b69bef3f1274ce85e40de95e08100b42fad18a961b03623942?d=identicon)[nabeel-alalmai](/maintainers/nabeel-alalmai)

---

Top Contributors

[![alalm3i](https://avatars.githubusercontent.com/u/6444894?v=4)](https://github.com/alalm3i "alalm3i (13 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (8 commits)")

---

Tags

laravelNabeel Alalmaiedfapay-laravel

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/alalm3i-edfapay-laravel/health.svg)

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

###  Alternatives

[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[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)[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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