PHPackages                             nasrinrezaei45/shepacom - 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. nasrinrezaei45/shepacom

ActiveLibrary[Payment Processing](/categories/payments)

nasrinrezaei45/shepacom
=======================

Shepa.com Laravel Package

1.0.4(4y ago)51.7k1[1 issues](https://github.com/nasrinrezaei45/shepacom/issues)MITPHPPHP ^7.2|^8.0

Since Mar 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nasrinrezaei45/shepacom)[ Packagist](https://packagist.org/packages/nasrinrezaei45/shepacom)[ RSS](/packages/nasrinrezaei45-shepacom/feed)WikiDiscussions master Synced today

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Shepa.com Laravel
=================

[](#shepacom-laravel)

Laravel package to connect to Shepa.com Payment Gateway

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

[](#installation)

`composer require nasrinrezaei45/shepacom`

Publish Configurations
----------------------

[](#publish-configurations)

`php artisan vendor:publish --provider="NasrinRezaei45\Shepacom\ShepacomServiceProvider"`

Config
------

[](#config)

Set your api key and redirect url in config/shepacom file:

```
   return array(
    'default' => 'sandbox',
    'drivers' => [
        'sandbox'  => [
            'api_key'  => 'sandbox',
            'callback' => env('SANDBOX_SHEPA_CALLBACK', 'http://localhost:8000/api/shepa/sandbox/verify'),
        ],
        'merchant' => [
            'api_key'  => env('SHEPACOM_API_KEY',"xxxxxx"),
            'callback' => env('SHEPACOM_CALLBACK', 'http://localhost:8000/api/shepa/merchant/verify'),
        ],
    ],
    'map'     => [
        'sandbox'  => \NasrinRezaei45\Shepacom\Drivers\Sandbox\Sandbox::class,
        'merchant' => \NasrinRezaei45\Shepacom\Drivers\Merchant\Merchant::class,
    ],
);
```

Usage
-----

[](#usage)

### route

[](#route)

```

//////// sandbox //////////

Route::get('/shepa/sandbox/send', function (Request $request) {

	$result = \NasrinRezaei45\Shepacom\ShepaFacade::send(1000, "sph_1996@yahoo.com", "09xxxxxxxxx", "desc");
	return redirect($result);

});

Route::get('/shepa/sandbox/verify', function (Request $request) {

	if ($request->token && $request->status == 'success') {
		$result = \NasrinRezaei45\Shepacom\ShepaFacade::verify($request->token, 1000);
		var_dump($result);
	}
	//user canceled the request payment
});

///////// merchant ////////
Route::get('/shepa/merchant/send', function (Request $request) {
	$result = \NasrinRezaei45\Shepacom\ShepaFacade::via("merchant")->send(1000, "sph_1996@yahoo.com", "09xxxxxxxxx", "desc");
	return redirect($result);
});

Route::get('/shepa/merchant/verify', function (Request $request) {
	if ($request->token && $request->status == 'success') {
		$result = \NasrinRezaei45\Shepacom\ShepaFacade::via("merchant")->verify($request->token, 1000);
		var_dump($result);
	}
	//user canceled the request payment
});

```

Usage with facade
-----------------

[](#usage-with-facade)

*Send*

```
ShepaFacade::via("merchant")->send($amount, $email, $mobile, $description);

```

*Verify*

```
ShepaFacade::via("merchant")->verify($token, $amount);

```

Security
--------

[](#security)

If you discover any security related issues, please create an issue or email me ()

License
-------

[](#license)

This repo is open-sourced software licensed under the MIT license.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 96.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 ~79 days

Total

4

Last Release

1628d ago

PHP version history (2 changes)1.0.0.0PHP ^7.2

1.0.4PHP ^7.2|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/70515691?v=4)[nasrinrezaei45](/maintainers/nasrinrezaei45)[@nasrinrezaei45](https://github.com/nasrinrezaei45)

---

Top Contributors

[![nasrinrezaei45](https://avatars.githubusercontent.com/u/70515691?v=4)](https://github.com/nasrinrezaei45 "nasrinrezaei45 (30 commits)")[![ammahmoodtork](https://avatars.githubusercontent.com/u/58780037?v=4)](https://github.com/ammahmoodtork "ammahmoodtork (1 commits)")

---

Tags

laravellaravel-packagepayment-gatewaylaravelShepashepacom

### Embed Badge

![Health badge](/badges/nasrinrezaei45-shepacom/health.svg)

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

###  Alternatives

[anandsiddharth/laravel-paytm-wallet

Integrate paytm wallet easily with this package. This package uses official Paytm PHP SDK's

104421.1k7](/packages/anandsiddharth-laravel-paytm-wallet)[parsisolution/gateway

A Laravel package for connecting to all Iraninan payment gateways

231.7k](/packages/parsisolution-gateway)[dena-a/iran-payment

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

312.4k1](/packages/dena-a-iran-payment)[threesquared/laravel-paymill

Laravel wrapper for the Paymill API

121.3k](/packages/threesquared-laravel-paymill)

PHPackages © 2026

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