定制 romantomchak/magento-composer-autoload 二次开发

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

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

romantomchak/magento-composer-autoload

最新稳定版本:1.1.0

Composer 安装命令:

composer require romantomchak/magento-composer-autoload

包简介

Integration composer autoload into Magento. Allows to load third-party libraries from vendor directory.

README 文档

README

Latest Stable Version Downloads License

Complete and simple to install Composer autoloader to Magento.

NOTE. Version 1.1 is only compatible with Magento 1.9 CE and Magento 1.14 EE

Installation

Using magento-composer-installer

To install this autoload using magento-composer-installer you need to follow these steps:

  1. Create composer.json file (if it is not created already) and add extra parameters:
  • magento-root-dir - Magento document root Path to Magento root directory regarding to composer.json file.
  • with-bootstrap-patch - Prevent patching the Mage.php file.

For example, if your composer.json file is in Magento root directory, then the extra configuration should look like this:

"extra": {
    "magento-root-dir": ".",
    "with-bootstrap-patch": false
}
  1. Add magento-composer-installer and magento-composer-installer to composer requirements:
composer require magento-hackathon/magento-composer-installer
composer require romantomchak/magento-composer-autoload

Manual install

If you want to install composer autoload manually (without using magento-composer-installer), you only need to copy the Autoload.php file from this repository to app/code/community/Varien directory in your Magento installation.

Configuration

This extension trying to locate the native composer autoloader which is located in vendor directory. The vendor directory may be in Magento root directory or Magento lib directory. If you use the custom vendor directory, you need to specify the path to it by selecting one of two ways:

  • define MAGE_VENDOR_ROOT php constant with full path to the vendor directory (without a slash at the end)
  • set MAGE_VENDOR_ROOT environment variable with full path to the vendor directory (without a slash at the end)

Also you can specify the custom name for vendor directory by:

  • define MAGE_VENDOR_DIR_NAME php constant with vendor directory name
  • set MAGE_VENDOR_DIR_NAME environment variable with vendor directory name

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-06-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固