PHPackages                             quadlayers/wp-autoload - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. quadlayers/wp-autoload

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

quadlayers/wp-autoload
======================

Composer package with autoload for WordPress.

1.2.6(3y ago)43.0kGPL-3.0PHPPHP &gt;=7.1.0

Since Jan 31Pushed 3y ago2 watchersCompare

[ Source](https://github.com/quadlayers/wp-autoload)[ Packagist](https://packagist.org/packages/quadlayers/wp-autoload)[ Docs](https://quadlayers.com/)[ RSS](/packages/quadlayers-wp-autoload/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

Composer WordPress Autoloader
=============================

[](#composer-wordpress-autoloader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/64e964922c7668abf7a6f661fe20ecb2fb7ce29a973c7a9b2d847b3e9cb8d182/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f717561646c61796572732f77702d6175746f6c6f61642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/quadlayers/wp-autoload)

This composer plugin allows you to autoload WordPress files via Composer based on the [Wordpress Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/)

This package is intended to be used as a dev package. It will help you in the development stage, avoiding the need to run the dump-autoload command every time a file is included in the repo.

This composer plugin should be used in conjunction with the classmap autolad. This will be used to create the optimized autoload in production.

The use of classmap will prevent any validation issues in packagist that using unrecognized autoload creates.

In brief, the idea is to use the autolad of the plugin in development and the classmap in production.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require quadlayers/wp-autoload --dev
```

Usage
-----

[](#usage)

```
{
	"config": {
		"allow-plugins": {
			"quadlayers/wp-autoload": true
		}
	},
	"autoload": {
		"classmap": [
			"src/",
			"lib/"
		]
	},
	"autoload-dev": {
		"exclude-from-classmap": [
			"src/",
			"lib/"
		]
	},
	"extra": {
		"quadlayers/wp-autoload": {
			"My_Plugin_Namespace": "src/",
			"My_Plugin_Namespace_2": "lib/"
		}
	}
}
```

Development
-----------

[](#development)

Run the `composer install` command to install all dev dependencies. All classes will be loaded via quadlayers/wp-autoload package.

Use the `composer dump-autoload` or `composer dump-autoload -o` commands. This will use the autoload-dev settings to exclude classmap autoload because all files will be loaded via quadlayers/wp-autoload package.

Production
----------

[](#production)

Run the `composer install --no-dev` command to remove the dev dependencies. The quadlayers/wp-autoload wont be installed and all your files will be loaded with the classmap composer autoload.

You can also run the `composer dump-autoload --no-dev` or `composer dump-autoload -o --no-dev` commands, to exclude the classmap autoload.

Todo
----

[](#todo)

Create optimized files and remove the need to use autoload classmap.

Credits
-------

[](#credits)

This plugin have been based on [Jetpack Autoloader](https://github.com/Automattic/jetpack-autoloader) and [Composer WordPress Autoloader ](https://github.com/alleyinteractive/composer-wordpress-autoloader).

Contribute
----------

[](#contribute)

Thats it! develop with WordPress naming conventions, run autoload command, and forget about us... I'm kidding; smush the stars button and contribute with this project. :D

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~16 days

Recently: every ~22 days

Total

7

Last Release

1106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8addf317f80adb7b1e3219184d051e86273d5291bd6a3ab303671c3d0c04a835?d=identicon)[franmastromarino](/maintainers/franmastromarino)

---

Top Contributors

[![franmastromarino](https://avatars.githubusercontent.com/u/6652831?v=4)](https://github.com/franmastromarino "franmastromarino (13 commits)")

---

Tags

wordpressautoload

### Embed Badge

![Health badge](/badges/quadlayers-wp-autoload/health.svg)

```
[![Health](https://phpackages.com/badges/quadlayers-wp-autoload/health.svg)](https://phpackages.com/packages/quadlayers-wp-autoload)
```

###  Alternatives

[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

525.5M69](/packages/automattic-jetpack-autoloader)[typisttech/imposter-plugin

Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

158251.0k2](/packages/typisttech-imposter-plugin)[lkwdwrd/wp-muplugin-loader

A drop-in MU Plugin loader for WordPress

5847.1k](/packages/lkwdwrd-wp-muplugin-loader)[frozzare/wp-autoload

Simple autoloader that will autoload classes or traits with namespace prefix

1618.3k4](/packages/frozzare-wp-autoload)[szepeviktor/composer-envato

Composer plugin for Envato

3715.2k1](/packages/szepeviktor-composer-envato)[balbuf/composer-wp

Manage WordPress core, plugins, and themes with composer.

173.6k](/packages/balbuf-composer-wp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
