romantomchak/magento-composer-autoload
Composer 安装命令:
composer require romantomchak/magento-composer-autoload
包简介
Integration composer autoload into Magento. Allows to load third-party libraries from vendor directory.
README 文档
README
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:
- Create
composer.jsonfile (if it is not created already) and add extra parameters:
magento-root-dir- Magento document root Path to Magento root directory regarding tocomposer.jsonfile.with-bootstrap-patch- Prevent patching theMage.phpfile.
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 }
- Add
magento-composer-installerandmagento-composer-installerto 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_ROOTphp constant with full path to thevendordirectory (without a slash at the end) - set
MAGE_VENDOR_ROOTenvironment variable with full path to thevendordirectory (without a slash at the end)
Also you can specify the custom name for vendor directory by:
- define
MAGE_VENDOR_DIR_NAMEphp constant withvendordirectory name - set
MAGE_VENDOR_DIR_NAMEenvironment variable withvendordirectory name
romantomchak/magento-composer-autoload 适用场景与选型建议
romantomchak/magento-composer-autoload 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19.34k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2016 年 06 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「composer」 「magento」 「composer-autoload」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 romantomchak/magento-composer-autoload 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 romantomchak/magento-composer-autoload 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 romantomchak/magento-composer-autoload 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Simple ASCII output of array data
Magento - Clean up session extension
Generate a Composer repository from installed WordPress plugins and themes.
统计信息
- 总下载量: 19.34k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 15
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-06-17