PHPackages                             magicway/momagic-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. magicway/momagic-laravel

ActiveLibrary[Payment Processing](/categories/payments)

magicway/momagic-laravel
========================

Laravel library for Magic way payment gateway

1.0.0(4y ago)13MITPHPPHP &gt;=7.2

Since Jul 15Pushed 4y ago1 watchersCompare

[ Source](https://github.com/momagicbd/MoMagic-Laravel)[ Packagist](https://packagist.org/packages/magicway/momagic-laravel)[ RSS](/packages/magicway-momagic-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

### MagicWay Payment Gateway Integration - Laravel Library

[](#magicway-payment-gateway-integration---laravel-library)

**Tags:** e-commerce, magicway, payment-gateway, checkout, shop, cart, local-payment-gateway, international-payment-gateway

**Requires:** PHP &gt;= 7.2, Laravel &gt;= 6.0 and MySQL

**License:** MIT

#### Core Library Directory Structure

[](#core-library-directory-structure)

```
 |-- config/
    |-- magic_way.php
 |-- app/Library/MoMagic
    |-- MoMagicAbstraction.php (core file)
    |-- MoMagicInterface.php (core file)
    |-- MoMagicConnector.php (core file)
 |-- README.md
 |-- orders.sql

```

#### Instructions:

[](#instructions)

- **Step 1:** Download and extract the library files.
- **Step 2:** Copy the `Library` folder and put it in the laravel project's `app/` directory. If needed, then run `composer dump -o`.
- **Step 3:** Copy the `config/magic_way.php` file into your project's `config/` folder.

Now, we have already copied the core library files. Let's do copy some other helpers files that is provided to understand the integration process. The other files are not related to core library.

- **Optional:** If you later encounter issues with session destroying after redirect, you can set `'same_site' => null,` in your `config/session.php` file.
- **Step 4:** Add `STORE_ID`, `STORE_PASSWORD`,`STORE_USER` and `STORE_EMAIL` values on your project's `.env` file.
- **Step 5:** Copy the `MoMagicPaymentController` into your project's `Controllers` folder.
- **Step 6:** Copy the defined routes from `routes/web.php` into your project's route file.
- **Step 7:** Add the below routes into the `$excepts` array of `VerifyCsrfToken` middleware.

protected $except = \[ '/success','/fail','/cancel','/ipn' \];

- **Step 8:** Copy the `resources/views/*.blade.php` files into your project's `resources/views/` folder.

Now, let's go to the main integration part.

- **Step 9:** Create a database and import the orders.sql table schema.
- **Step 10:** For Checkout integration, you can update the MoMagicPaymentController-&gt;checkout() or use a different method according to your need. We have provided a basic sample from where you can kickstart the payment gateway integration.
- **Step 11:** When user click Continue to checkout button, redirect customer to payment channel selection page.
- **Step 12:** For redirecting action from MagicWay Payment gateway, we have also provided sample success(), fail(), cancel() and ipn() methods in MoMagicPaymentController. You can update those methods according to your need.

### Contributors

[](#contributors)

> Arifur Rahman

>

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

1762d ago

### Community

Maintainers

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

---

Top Contributors

[![ar017mmbd](https://avatars.githubusercontent.com/u/87406169?v=4)](https://github.com/ar017mmbd "ar017mmbd (1 commits)")

---

Tags

laravelphp7shopcarte-commercecheckoutpayment gatewaymagicwaylocal-payment-gatewayinternational-payment-gateway

### Embed Badge

![Health badge](/badges/magicway-momagic-laravel/health.svg)

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

###  Alternatives

[amsgames/laravel-shop

Package set to provide shop or e-commerce functionality (such as CART, ORDERS, TRANSACTIONS and ITEMS) to Laravel for customizable builds.

4845.9k](/packages/amsgames-laravel-shop)[lunarphp/stripe

Stripe payment driver for Lunar.

2055.8k4](/packages/lunarphp-stripe)[sunnysideup/ecommerce

Silverstripe E-commerce Application

257.2k79](/packages/sunnysideup-ecommerce)

PHPackages © 2026

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