PHPackages                             yireo-training/magento2-mage-god - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yireo-training/magento2-mage-god

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

yireo-training/magento2-mage-god
================================

701PHP

Since May 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yireo-training/magento2-mage-god)[ Packagist](https://packagist.org/packages/yireo-training/magento2-mage-god)[ RSS](/packages/yireo-training-magento2-mage-god/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yireo MageGod
=============

[](#yireo-magegod)

Little package that re-introduces the Magento 1 `Mage` class back into Magento 2.

Disclaimer
----------

[](#disclaimer)

We do **NOT** recommend for this package to be used in the wild: This is an educational gimmick, not meant for real-life. You might say that a `Mage` class in M2 would make migration from M1 to M2 easier, but it does not: The M2 code is hugely different, that any M1 extension or theme or custom code needs to be rewritten. And we highly recommend to do this rewrite properly, taking advantage of the modern structure of M2. This `Mage` class is not part of that. It is just a joke.

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

[](#installation)

Run the following commands:

```
composer require yireo/magento2-mage-god@dev
./bin/magento module:enable Yireo_MageGod
./bin/magento setup:upgrade

```

Using it in your code
---------------------

[](#using-it-in-your-code)

```
use Yireo\MageGod\Mage;
use Magento\Catalog\Model\Product;
use Magento\Customer\Model\Session as CustomerSession;

class Example
{
    public function getProduct()
    {
        $product = Mage::getModel(Product::class);
        $product->load(42);
        return $product;
    }

    public function getCustomerSession()
    {
         $customerSession = Mage::getSingleton(CustomerSession::class);
         return $customerSession;
    }
}
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 83.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a6a4e3ec0e7f3a8d2d223c90c5545319fc0a382afd3bc10cd910fedc0fa8f5d?d=identicon)[yireo-training](/maintainers/yireo-training)

---

Top Contributors

[![jissereitsma](https://avatars.githubusercontent.com/u/7670482?v=4)](https://github.com/jissereitsma "jissereitsma (5 commits)")[![michielgerritsen](https://avatars.githubusercontent.com/u/5858697?v=4)](https://github.com/michielgerritsen "michielgerritsen (1 commits)")

### Embed Badge

![Health badge](/badges/yireo-training-magento2-mage-god/health.svg)

```
[![Health](https://phpackages.com/badges/yireo-training-magento2-mage-god/health.svg)](https://phpackages.com/packages/yireo-training-magento2-mage-god)
```

PHPackages © 2026

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