claudiosanches/wp-autoloader

Autoload classes following WordPress naming convertions

1.0.0 2017-01-17 04:16 UTC

This package is auto-updated.

Last update: 2024-12-20 07:12:02 UTC


README

Loads namespaces and classes following the WordPress naming conventions.

Scrutinizer Code Quality Code Climate Code Coverage Build Status

Installation

composer require claudiosanches/wp-autoloader

Usage

require __DIR__ . '/vendor/autoload.php';

use ClaudioSanches\WPAutoloader\Autoloader;

$autoloader = new Autoloader();

// Add namespace.
$autoloader->addNamespace('ClaudioSanches\Foo\Bar', __DIR__ . '/src');

// Register all autoload.
$autoloader->register();

Release History

  • 2017-01-17 - 1.0.0 - Stable release.