PHPackages                             romantomchak/magento-composer-autoload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. romantomchak/magento-composer-autoload

ActiveMagento-module[Utility &amp; Helpers](/categories/utility)

romantomchak/magento-composer-autoload
======================================

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

1.1.0(7y ago)319.4k↓86.7%2MITPHPPHP &gt;=5.3.0

Since Jun 17Pushed 7y ago1 watchersCompare

[ Source](https://github.com/romantomchak/magento-composer-autoload)[ Packagist](https://packagist.org/packages/romantomchak/magento-composer-autoload)[ Docs](https://github.com/romantomchak/magento-composer-autoload)[ RSS](/packages/romantomchak-magento-composer-autoload/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Magento Composer Autoload
=========================

[](#magento-composer-autoload)

[![Latest Stable Version](https://camo.githubusercontent.com/ba35e110782149fd0dbb7f58171c6c73e06efdccf458936eab85dd893a87cf76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6d616e746f6d6368616b2f6d6167656e746f2d636f6d706f7365722d6175746f6c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romantomchak/magento-composer-autoload)[![Downloads](https://camo.githubusercontent.com/18c6e5af424acca4cf717f5a775f7876945aab96364f66b399aa33874f46403e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726f6d616e746f6d6368616b2f6d6167656e746f2d636f6d706f7365722d6175746f6c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/romantomchak/magento-composer-autoload)[![License](https://camo.githubusercontent.com/116f91e7f0b1d4acf0822720cf48f8f367fd4e95cf48bc4df628a1266effb81b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f726f6d616e746f6d6368616b2f6d6167656e746f2d636f6d706f7365722d6175746f6c6f61642e7376673f6c6162656c3d6c6963656e7365267374796c653d666c61742d737175617265)](LICENSE.md)

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
------------

[](#installation)

### Using magento-composer-installer

[](#using-magento-composer-installer)

To install this autoload using [magento-composer-installer](https://github.com/Cotya/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
}
```

2. 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

[](#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
-------------

[](#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

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~517 days

Total

3

Last Release

2680d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71d358f561e1ac0a607e10714076b4e7c25c8318e18492f925e8e8172baf9691?d=identicon)[romantomchak](/maintainers/romantomchak)

---

Top Contributors

[![romantomchak](https://avatars.githubusercontent.com/u/2635104?v=4)](https://github.com/romantomchak "romantomchak (8 commits)")

---

Tags

autoloadmagentomagento-composer-autoloadphpcomposermagentocomposer-autoload

### Embed Badge

![Health badge](/badges/romantomchak-magento-composer-autoload/health.svg)

```
[![Health](https://phpackages.com/badges/romantomchak-magento-composer-autoload/health.svg)](https://phpackages.com/packages/romantomchak-magento-composer-autoload)
```

###  Alternatives

[composer/satis

Simple Repository Generator

3.3k1.5M19](/packages/composer-satis)[brianhenryie/strauss

Prefixes dependencies namespaces so they are unique to your plugin

192484.7k41](/packages/brianhenryie-strauss)[magento/magento-composer-installer

Composer installer for Magento modules

7524.5M360](/packages/magento-magento-composer-installer)[noerd/noerd

111.6k17](/packages/noerd-noerd)[playbloom/satisfy

Satis composer repository manager with a Web UI

54910.6k](/packages/playbloom-satisfy)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39255.4k37](/packages/ec-europa-toolkit)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
