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

ActiveLibrary[Payment Processing](/categories/payments)

magicway/momagic-php
====================

PHP library for Magic way payment gateway

1.0.0(4y ago)16MITPHPPHP &gt;=5.4

Since Jul 14Pushed 4y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

### MagicWay Payment Gateway Integration - PHP Library

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

### Library Directory

[](#library-directory)

```
 |-- config/
    |-- config.php
 |-- lib/
    |-- MoMagicAbstraction.php (core file)
    |-- MoMagicInterface.php (core file)
    |-- MoMagicConnector.php (core file)
 |-- pg_redirection/
    |-- cancel.php
    |-- fail.php
    |-- success.php
    |-- ipn.php
 |-- README.md
 |-- orders.sql
 |-- db_connection.php
 |-- checkout_hosted.php
 |-- example_hosted.php
 |-- OrderTransaction.php

```

#### Instructions:

[](#instructions)

- **Step 1:** Download and extract the library files into your project
- **Step 2:** Create a database and import the `orders.sql` table schema. Then set the database credential on `db_connection.php` file.
- **Step 3:** For Checkout integration, you can update the `checkout_hosted.php` or use a different file according to your need. We have provided a basic sample page from where you can kickstart the payment gateway integration.
- **Step 4:** When user click Continue to checkout button, redirect customer to payment channel selection page.
- **Step 5:** For redirecting action from MagicWay Payment gateway, we have also provided sample `success.php`, `cancel.php`, `fail.php` and `ipn.php` files. You can update those files according to your need.

### Contributors

[](#contributors)

> Arifur Rahman

>

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

1769d 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 (7 commits)")

---

Tags

phpshopcarte-commercecheckoutpayment gatewaymagicwaylocal-payment-gatewayinternational-payment-gateway

### Embed Badge

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

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

###  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)[aimeos/ai-payments

Payment extension for Aimeos e-commerce solutions

2160.7k](/packages/aimeos-ai-payments)

PHPackages © 2026

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