定制 memegento/module-mage 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

memegento/module-mage

最新稳定版本:1.0.1

Composer 安装命令:

composer require memegento/module-mage

包简介

The Legend Returns

README 文档

README

Buy Me A Coffee

This module adds the legendary Mage class from Magento 1 to Magento 2. Now developers can write Magento 1-like code in Magento 2 or event port Magento 1 code to Magento 2 without any changes.

Pull requests from the community are welcomed!

Requirements

  • PHP 7.4+
  • Magento 2 CE or EE installation

Installation

composer require memegento/mage

Usage

Mage class provides some basic methods to interact with Magento 2 as if it were Magento 1.

$productModelLegacyWay = Mage::getModel('catalog/product');

$productModelNewWay = Mage::getModel(\Magento\Catalog\Model\Product::class);

$productUrl = Mage::getUrl('catalog/product/view', ['product_id' => $productId]);

Mage::log('Some message', ['context_field' => 'value'], Zend_Log::INFO);
Mage::throwException('Exception message');

Compatibility

  • 2.4.x Magento 2 Open Source or Commerce Edition

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2022-08-07