mammutgroup/gateway
Larablocks Analysis
mammutgroup/gateway works with any PHP project: the latest release (3.1.0, Apr 29, 2017) doesn't depend on Laravel.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Apr 29, 2017)
- 0 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Apr 29, 2017.
- No releases in the last 12 months.
- First released: May 2, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 25, 2026.
| Install | |
|---|---|
composer require mammutgroup/gateway |
|
| Latest Version: | 3.1.0 |
| License: | MIT |
| Last Updated: | Apr 29, 2017 |
| Links: | GitHub · Packagist |
package's home : larabook.ir
by this package we are able to connect to all Iranian bank with one unique API.
Please inform us once you've encountered bug or issue .
Available Banks:
- MELLAT
- SADAD
- PARSIAN
- PASARGAD
- ZARINPAL
- JAHANPAY
- PAYLINE
SAMAN bank will be added asap.
Installation:
Run below statements on your terminal :
STEP 1 :
composer require larabook/gateway
STEP 2 : Add provider and facade in config/app.php
'providers' => [
...
Larabookir\Gateway\GatewayServiceProvider::class, // <-- add this line at the end of provider array
],
'aliases' => [
...
'Gateway' => Larabookir\Gateway\Gateway::class, // <-- add this line at the end of aliases array
]
Step 3:
php artisan vendor:publish --provider="Larabookir\Gateway\GatewayServiceProvider"
Step 4:
php artisan migrate
Configuration file is placed in config/gateway.php , open it and enter your banks credential:
You can make connection to bank by several way (Facade , Service container):
try {
$gateway = \Gateway::make(new \Mellat());
// $gateway->setCallback(url('/path/to/calback/route')); You can also change the callback
$gateway->price(1000)->ready();
$refId = $gateway->refId();
$transID = $gateway->transactionId();
// Your code here
return $gateway->redirect();
} catch (Exception $e) {
echo $e->getMessage();
}
you can call the gateway by these ways :
- Gateway::make(new Mellat());
- Gateway::mellat()
- app('gateway')->make(new Mellat());
- app('gateway')->mellat();
Instead of MELLAT you can enter other banks Name as we introduced above .
In set method you should enter the price in IRR (RIAL)
and in your callback :
try {
$gateway = \Gateway::verify();
$trackingCode = $gateway->trackingCode();
$refId = $gateway->refId();
$cardNumber = $gateway->cardNumber();
// Your code here
} catch (Exception $e) {
echo $e->getMessage();
}
If you are intrested to developing this package you can help us by these ways :
- Improving documents.
- Reporting issue or bugs.
- Collaboration in writing codes and other banks modules.
This package is extended from PoolPort but we've changed some functionality and improved it .
Alternatives to mammutgroup/gateway
A Laravel package for integrating the Viva Payments gateway
Postfinance Gateway for the Omnipay payment processing library
Version History
| Version | Released | License |
|---|---|---|
| 3.1.0 | MIT | |
| 3.0.2 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 2.9.9 | MIT | |
| 2.9.8 | MIT | |
| 2.9.7 | MIT | |
| 2.9.6 | MIT | |
| 2.9.5 | MIT | |
| 2.9.4 | MIT | |
| 2.9.3 | MIT | |
| 2.9.2 | MIT | |
| 2.9.1 | MIT | |
| 2.9 | MIT | |
| 2.8 | MIT | |
| 2.7 | MIT | |
| 2.6 | MIT | |
| 2.5 | MIT | |
| 2.4 | MIT | |
| 2.3 | MIT | |
| 2.2 | MIT | |
| 2.1 | MIT | |
| 2.0 | MIT | |
| 1.2 | MIT | |
| 1.1 | MIT | |
| 1.0 | MIT |