PHPackages                             sowrensen/laravel-shurjopay - 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. sowrensen/laravel-shurjopay

ActiveLibrary[Payment Processing](/categories/payments)

sowrensen/laravel-shurjopay
===========================

A package for handling ShurjoPay payment gateway in Laravel applications

v1.1.1(5y ago)32.3k↓50%2MITPHPPHP &gt;=7.2

Since Sep 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/sowrensen/laravel-shurjopay)[ Packagist](https://packagist.org/packages/sowrensen/laravel-shurjopay)[ Docs](https://github.com/sowrensen/laravel-shurjopay)[ RSS](/packages/sowrensen-laravel-shurjopay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Laravel-ShurjoPay 💳
===================

[](#laravel-shurjopay-)

> A package for handling ShurjoPay payment gateway in Laravel applications

Laravel-ShurjoPay is a package for handling ShurjoPay payment gateway easily in Laravel applications. It has some advantages over the package provided by ShurjoPay and is much more configurable and well-structured.

##### Key differences with the official package

[](#key-differences-with-the-official-package)

- Auto discovery for Laravel 5.5+ projects. 🔍
- ShurjoPay configurations can be defined on the fly. 🛸
- Uses **Guzzle** instead of cURL by default.

#### Changelog

[](#changelog)

For detailed changelog please see [this file](CHANGELOG.MD).

#### Requirements

[](#requirements)

- PHP &gt;= 7.2
- Laravel &gt;= 6.0

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

[](#installation)

To install the package run

```
composer require sowrensen/laravel-shurjopay

```

Publish
-------

[](#publish)

To publish the config file, run the following command

```
php artisan vendor:publish --tag=ls-config

```

Environment Variables (Optional)
--------------------------------

[](#environment-variables-optional)

ShurjoPay would provide you some credentials, define them in your `.env` file:

```
SHURJOPAY_SERVER_URL=
MERCHANT_USERNAME=
MERCHANT_PASSWORD=
MERCHANT_KEY_PREFIX=
```

Now if you like to keep your secret credentials somewhere else, there's nothing to worry about. You can load them on the fly. 😁 Check the following section.

Usage
-----

[](#usage)

The usage of the package is simple. First import the `Sowren\ShurjoPay\ShurjoPayService` class.

```
use Sowren\ShurjoPay\ShurjoPayService;
```

If you have defined your credentials in `.env` file, then just create an object,

```
$client = new ShurjoPayService(500, route('home'));
```

If you want to load your ShurjoPay configuration in runtime, pass them to the constructor,

```
$client = new ShurjoPayService(
            500,
            route('home'),
            'serverUrl',
            'merchantUsername',
            'merchantPassword',
            'merchantKeyPrefix'
        );
```

...and call the `generateTxnId` and `makePayment` method.

```
$txnId = $client->generateTxnId(); // Pass any string to set your own unique id
$client->makePayment();
```

That's it! After successful or failed attempt it will redirect to the route you provided along with ShurjoPay response parameters.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Total

5

Last Release

1912d ago

PHP version history (2 changes)v1.0.0PHP &gt;=7.0

v1.1.0PHP &gt;=7.2

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

composercomposer-packagelaravellaravel-frameworklaravel-packagepackagepayment-gatewaylaravelpayment gatewayonline-paymentShrujoPayCGIT

### Embed Badge

![Health badge](/badges/sowrensen-laravel-shurjopay/health.svg)

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

###  Alternatives

[lemonsqueezy/laravel

A package to easily integrate your Laravel application with Lemon Squeezy.

58596.1k](/packages/lemonsqueezy-laravel)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7956.2k1](/packages/luigel-laravel-paymongo)[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)[tsaiyihua/laravel-linepay

linepay library for laravel

102.9k](/packages/tsaiyihua-laravel-linepay)

PHPackages © 2026

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