You are here

README.txt in psr0 autoloader 7

-- SUMMARY --

This module implements a simple PSR-4 class autoloader for Drupal modules and
profiles. Take a look at the following examples for classes and where PSR-4
tries to find their declaration.

  Drupal\your_module\YourClass -> your_module/lib/YourClass.php
  Drupal\your_module\SomeInterface -> your_module/lib/SomeInterface.php
  Drupal\your_module\Namespace\Class -> your_module/lib/Namespace/Class.php
  Drupal\your_profile\SomeClass -> profiles/your_profile/lib/SomeClass.php

-- REQUIREMENTS --

* Requires PHP >= 5.3.0 for namespaces to work.

-- INSTALLATION --

* Install as usual, see https://drupal.org/node/895323 for further information.
* Works as soon as the module is enabled without further configuration.

-- FAQ --

Q: Why is it called psr0 if it implements PSR-4?

A: At the time of it's writing PSR-0 was the standard used by Drupal 8, but it
   soon changed to PSR-4 after that. Module short-names can only be set once.
   So I'm stuck with psr0.

File

README.txt
View source
  1. -- SUMMARY --
  2. This module implements a simple PSR-4 class autoloader for Drupal modules and
  3. profiles. Take a look at the following examples for classes and where PSR-4
  4. tries to find their declaration.
  5. Drupal\your_module\YourClass -> your_module/lib/YourClass.php
  6. Drupal\your_module\SomeInterface -> your_module/lib/SomeInterface.php
  7. Drupal\your_module\Namespace\Class -> your_module/lib/Namespace/Class.php
  8. Drupal\your_profile\SomeClass -> profiles/your_profile/lib/SomeClass.php
  9. -- REQUIREMENTS --
  10. * Requires PHP >= 5.3.0 for namespaces to work.
  11. -- INSTALLATION --
  12. * Install as usual, see https://drupal.org/node/895323 for further information.
  13. * Works as soon as the module is enabled without further configuration.
  14. -- FAQ --
  15. Q: Why is it called psr0 if it implements PSR-4?
  16. A: At the time of it's writing PSR-0 was the standard used by Drupal 8, but it
  17. soon changed to PSR-4 after that. Module short-names can only be set once.
  18. So I'm stuck with psr0.