PHPackages                             act360/laravel-esewa - 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. act360/laravel-esewa

ActiveLibrary[Payment Processing](/categories/payments)

act360/laravel-esewa
====================

A E-sewa payment gateway integration for laravel

v0.1.2(8y ago)71333MITPHP

Since May 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/act360/laravel-esewa)[ Packagist](https://packagist.org/packages/act360/laravel-esewa)[ RSS](/packages/act360-laravel-esewa/feed)WikiDiscussions master Synced 3d ago

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

Easy Esewa Payment Integration For Your Laravel App
===================================================

[](#easy-esewa-payment-integration-for-your-laravel-app)

This composer package offers a E-sewa payment gateway setup for your Laravel applications.

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

[](#installation)

Begin by pulling in the package through Composer.

```
composer require act360/laravel-esewa
```

Next, if using Laravel 5, include the service provider within your `config/app.php` file.

```
'providers' => [
    Esewa\EsewaServiceProvider::class,
];
```

Finally, add these variable to `.env`.

```
ESEWA_MERCHANT_ID=YOUR_ESEWA_MERCHANT_ID
ESEWA_TRANSACTION_URL=ESEWA_PAYMENT_URL
```

Usage
-----

[](#usage)

Within your Model, make a call to the `Billable` trait.

```
namespace App;

use Esewa\Billable;

Class Store extends Model
{
    use Billable;
}
```

You can use this on controller as:

```
Class StoreController extends Controller
{
    public function create(Request $request, Store $store)
    {
        $item = $store->create($request->all());
        $payment_details = [
            'tAmt' => 100,
            'amt' => 100,
            'pid' => "PR-01",
            'su' => "YOUR_SUCCESS_URL",
            'fu' => "YOUR_FAILURE_URL"
        ];
        $item->charge($payment_details);
    }

    public function success()
    {
        // Do something here when payment success.
    }

    public function failure()
    {
        // Do something here when payment failure.
    }
}
```

Done! You'll now be able to use esewa gateway.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.9% 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 ~1 days

Total

3

Last Release

3282d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/43d8798580eabe6e8a2cb80bd464afbd53906fd322ce7f8055d84c600a454c93?d=identicon)[act360](/maintainers/act360)

---

Top Contributors

[![santosh-act360](https://avatars.githubusercontent.com/u/111268155?v=4)](https://github.com/santosh-act360 "santosh-act360 (26 commits)")[![act360](https://avatars.githubusercontent.com/u/26865057?v=4)](https://github.com/act360 "act360 (5 commits)")

---

Tags

composeresewaesewa-gatewaylaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/act360-laravel-esewa/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[asciisd/knet

Knet package is provides an expressive, fluent interface to KNet's payment services.

141.1k](/packages/asciisd-knet)[dena-a/iran-payment

a Laravel package to handle Internet Payment Gateways for Iran Banking System

312.4k1](/packages/dena-a-iran-payment)

PHPackages © 2026

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