2017 © Pedro Peláez
 

drupal-module classloader_composer

A simple module to autoload classes known to composer.

image

janschumann/classloader_composer

A simple module to autoload classes known to composer.

  • Thursday, April 16, 2015
  • by janschumann
  • Repository
  • 0 Watchers
  • 0 Stars
  • 860 Installations
  • 2 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 6 % Grown

The README.md

Drupal composer classloader

Overview

A simple module enables composer autoloading for drupal modules., (*1)

Installation

This project can be checked out with composer., (*2)

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

Confguration

Usually no configuration is necessary., (*3)

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

Via shell script:, (*5)

$ drush vset composer_vendor_dir <path/to/vendor/dir>

Via php:, (*6)

variable_set('composer_vendor_dir', '<path/to/vendor/dir>');

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

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

Bitdeli Badge, (*8)

The Versions

16/04 2015

dev-master

9999999-dev https://github.com/janschumann/drupal-composer-classloader

A simple module to autoload classes known to composer.

  Sources   Download

MIT

The Requires

 

drupal web

16/04 2015

1.0.1

1.0.1.0 https://github.com/janschumann/drupal-composer-classloader

A simple module to autoload classes known to composer.

  Sources   Download

MIT

The Requires

 

drupal web

06/02 2015

1.0.0

1.0.0.0 https://github.com/janschumann/drupal-composer-classloader

A simple module to autoload classes known to composer.

  Sources   Download

MIT

The Requires

 

drupal web

28/01 2015

v0.1.0

0.1.0.0 https://github.com/janschumann/drupal-composer-classloader

A simple module to autoload classes known to composer.

  Sources   Download

MIT

The Requires

 

drupal web