PHPackages                             janschumann/classloader\_composer - 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. janschumann/classloader\_composer

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

janschumann/classloader\_composer
=================================

A simple module to autoload classes known to composer.

1.0.1(11y ago)03.2k1[1 issues](https://github.com/janschumann/drupal-composer-classloader/issues)2MITPHP &gt;=5.3.3

Since Jan 27Pushed 11y agoCompare

[ Source](https://github.com/janschumann/drupal-composer-classloader)[ Packagist](https://packagist.org/packages/janschumann/classloader_composer)[ Docs](https://github.com/janschumann/drupal-composer-classloader)[ RSS](/packages/janschumann-classloader-composer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (4)Used By (2)

Drupal composer classloader
===========================

[](#drupal-composer-classloader)

Overview
--------

[](#overview)

A simple module enables [composer autoloading](http://getcomposer.org) for drupal modules.

Installation
------------

[](#installation)

This project can be checked out with [composer](http://getcomposer.org).

```
{
  "require": {
    "janschumann/classloader_composer": "*"
  }
}
```

Confguration
------------

[](#confguration)

Usually no configuration is necessary.

Only if you have changed the `vendor-dir` configuration option in your `composer.json` file, the absolute path to this directory has to be made available to drupal:

**Via shell script:**

```
$ drush vset composer_vendor_dir
```

**Via php:**

```
variable_set('composer_vendor_dir', '');
```

Usage
-----

[](#usage)

After this module is required in your project´s `composer.json` file, composer will autoload all classes added to the `composer.json` autoload section:

```
{
    "autoload": {
        "psr-0": {
            "My\\Namespace\\": "src"
        }
    }
}
```

[![Bitdeli Badge](https://camo.githubusercontent.com/5971145bce04a1e9ee44407a032c1a91a27624e8dfbb824f99bb9ec539253183/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f6a616e736368756d616e6e2f64727570616c2d636f6d706f7365722d636c6173736c6f616465722f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 87.5% 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 ~39 days

Total

3

Last Release

4049d ago

Major Versions

v0.1.0 → 1.0.02015-02-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/85ac46e89d82ee9b6112a3dee706f34a79f4787d2a9e1c0429d6bd5d0f310a2c?d=identicon)[janschumann](/maintainers/janschumann)

---

Top Contributors

[![janschumann](https://avatars.githubusercontent.com/u/276364?v=4)](https://github.com/janschumann "janschumann (7 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

---

Tags

webdrupal

### Embed Badge

![Health badge](/badges/janschumann-classloader-composer/health.svg)

```
[![Health](https://phpackages.com/badges/janschumann-classloader-composer/health.svg)](https://phpackages.com/packages/janschumann-classloader-composer)
```

###  Alternatives

[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[lullabot/amp

A set of useful classes and utilities to convert html to AMP html (See https://www.ampproject.org/)

3802.9M10](/packages/lullabot-amp)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5341.9M446](/packages/drupal-core-composer-scaffold)[jakubkulhan/chrome-devtools-protocol

Chrome Devtools Protocol client for PHP

183967.6k3](/packages/jakubkulhan-chrome-devtools-protocol)[drupal/core-project-message

Adds a message after Composer installation.

2122.6M172](/packages/drupal-core-project-message)[botman/driver-web

Web driver for BotMan

86658.7k7](/packages/botman-driver-web)

PHPackages © 2026

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