2017 © Pedro Peláez
 

magento-module magento-composer-autoload

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

image

romantomchak/magento-composer-autoload

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

  • Monday, November 20, 2017
  • by romantomchak
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2,379 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 30 % Grown

The README.md

Magento Composer Autoload

Latest Stable Version Downloads License, (*1)

Complete and simple to install Composer autoloader to Magento., (*2)

NOTE. Version 1.1 is only compatible with Magento 1.9 CE and Magento 1.14 EE, (*3)

Installation

Using magento-composer-installer

To install this autoload using magento-composer-installer you need to follow these steps:, (*4)

  1. Create composer.json file (if it is not created already) and add extra parameters:, (*5)

    • 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:, (*6)

    "extra": {
     "magento-root-dir": ".",
     "with-bootstrap-patch": false
    }
    
  2. Add magento-composer-installer and magento-composer-installer to composer requirements:, (*7)

    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., (*8)

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), (*9)

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, (*10)

The Versions

20/11 2017

dev-master

9999999-dev https://github.com/romantomchak/magento-composer-autoload

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

  Sources   Download

MIT

The Requires

 

by Roman Tomchak

composer magento composer-autoload

20/11 2017

1.0.1

1.0.1.0 https://github.com/romantomchak/magento-composer-autoload

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

  Sources   Download

MIT

The Requires

 

by Roman Tomchak

composer magento composer-autoload

17/06 2016

1.0

1.0.0.0 https://github.com/romantomchak/magento-composer-autoload

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

  Sources   Download

MIT

The Requires

 

by Roman Tomchak

composer magento composer-autoload