claudiosanches / wp-autoloader
Autoload classes following WordPress naming convertions
1.0.0
2017-01-17 04:16 UTC
Requires
- php: >= 7.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-12-20 07:12:02 UTC
README
Loads namespaces and classes following the WordPress naming conventions.
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.