Download the PHP package moonwalkingbits/wordpress-autoloader-composer-plugin without Composer
On this page you can find all versions of the php package moonwalkingbits/wordpress-autoloader-composer-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moonwalkingbits/wordpress-autoloader-composer-plugin
More information about moonwalkingbits/wordpress-autoloader-composer-plugin
Files in moonwalkingbits/wordpress-autoloader-composer-plugin
Package wordpress-autoloader-composer-plugin
Short Description A composer plugin enabling libraries/projects to autoload classes using the WordPress coding standards.
License GPL-3.0-or-later
Informations about the package wordpress-autoloader-composer-plugin
WordPress Autoloader Composer Plugin
To easily consume libraries following the WordPress coding standards this plugin enables the libraries to register namespace mappings in the composer configuration like any other autoloading standard.
A library can register any number of namespace mappings:
This plugin will generate a file named wordpress-autoload.php
that resides in
the composer vendor directory. The consumer of the library can include this file
directly and it will work as expected. But you can also add the file to the list
of autoloaded files in the composer configuration. Doing this allows you to use
all possible autoloading standards simultaneously:
The consumer can of course also define its own set of namespace mappings:
Just like the composer autoload file wordpress-autoload.php
returns the
autoloader instance. If you use wordpress-autoload.php
directly you can
store the return value of the include call in a variable and add more
namespace mappings:
License
WordPress Autoloader Composer Plugin is released under the GPL license.
All versions of wordpress-autoloader-composer-plugin with dependencies
composer-plugin-api Version ~1.0 || ~2.0
moonwalkingbits/wordpress-autoloader Version ~0.1