2017 © Pedro Peláez
 

library psr4_auto_loader

Implementation of the PSR-4 autoloading standard

image

rooc/psr4_auto_loader

Implementation of the PSR-4 autoloading standard

  • Monday, June 12, 2017
  • by roocster
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

PSR4AutoLoader

Implementation of the PSR-4 autoloading standard., (*1)

Minimum PHP Version License Version, (*2)

Requirements

  • PHP >=7.1 (for PHP >=5.6 support use version 1.0)
  • PHPUnit >=5.7 (for running tests)

Installation

Via Composer:, (*3)

composer require "rooc/psr4_auto_loader"

Usage

For example, in the project root we have "src" folder that contains our own code of classes, interfaces, traits etc. Let's load all of them:, (*4)

$autoLoader = new \Rooc\PSR4AutoLoader\PSR4AutoLoader('./src', 'App');
$autoLoader->register();

If your code are in several directories, e. g. "Classes" and "Interfaces", you need register both:, (*5)

use Rooc\PSR4AutoLoader\PSR4AutoLoader;

// Load classes
(new PSR4AutoLoader('./Classes', 'App'))->register();

// Load interfaces
(new PSR4AutoLoader('./Interfaces', 'App'))->register();

Note that you should follow the PSR-4 class naming rules: http://www.php-fig.org/psr/psr-4/#specification, (*6)

License

MIT, (*7)

The Versions

12/06 2017

dev-master

9999999-dev

Implementation of the PSR-4 autoloading standard

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Ilya Rooc

psr-4 autoloading

12/06 2017

v2.0.1

2.0.1.0

Implementation of the PSR-4 autoloading standard

  Sources   Download

MIT

The Requires

  • php >=7.1

 

The Development Requires

by Ilya Rooc

psr-4 autoloading

12/06 2017

v1.x-dev

1.9999999.9999999.9999999-dev

Implementation of the PSR-4 autoloading standard

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Ilya Rooc

psr-4 autoloading

12/06 2017

v1.0.1

1.0.1.0

Implementation of the PSR-4 autoloading standard

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Ilya Rooc

psr-4 autoloading