2017 © Pedro Peláez
 

magento-module composer-autoloader

Easily add the Composer autoloader to Magento.

image

fontis/composer-autoloader

Easily add the Composer autoloader to Magento.

  • Friday, September 11, 2015
  • by fontis
  • Repository
  • 7 Watchers
  • 5 Stars
  • 5,921 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 4 % Grown

The README.md

Fontis Composer Autoloader

Overview

Allows Magento extensions to make use of Composer libraries using the existing Composer autoloader, removing the need to manually install and require them in code., (*1)

Installation

  1. Add the extension to your composer.json file, (*2)

    composer require fontis/composer-autoloader
    

    Or edit your composer.json file directly and add this line to the "require" section:, (*3)

    "fontis/composer-autoloader": "2.1.*"
    
  2. Edit app/etc/local.xml and add the following XML. Modify the path to suit your installation, based on the location of your Composer vendor directory., (*4)

    ``` {{basedir}}/vendor ````, (*5)

    This should go inside <config><global> next to <install>, <crypt>, etc. The special values {{basedir}} and {{libdir}} will be replaced with the paths for the Magento base directory and the lib directory, respectively., (*6)

Notes

This extension makes use of the resource_get_tablename event, which is the very first event dispatched by Magento during the bootstrap process. The only place you can have event configuration for this event is in an XML file in app/etc, which is how this module works., (*7)

In order to make this work in command line scripts, we also put a file in app/code/community that overrides Varien_Profiler. This file just requires the original version, then loads the global event configuration. This is necessary because of the differences in bootstrapping Magento manually from the command line versus how Magento does it for web requests., (*8)

This is an improvement over v1 of this extension, where you had to manually dispatch an event after bootstrapping Magento to ensure the composer autoloader was required in command-line scripts., (*9)

The Versions

11/09 2015

dev-master

9999999-dev http://www.fontis.com.au

Easily add the Composer autoloader to Magento.

  Sources   Download

OSL-3.0

The Requires

 

11/09 2015

2.0.3

2.0.3.0 http://www.fontis.com.au

Easily add the Composer autoloader to Magento.

  Sources   Download

OSL-3.0

The Requires

 

27/01 2015

1.0.0

1.0.0.0 http://www.fontis.com.au

Easily add the Composer autoloader to Magento.

  Sources   Download

OSL-3.0

The Requires