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.1kGPL-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 1w 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 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

1197d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6652831?v=4)[Francisco](/maintainers/franmastromarino)[@franmastromarino](https://github.com/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.

566.3M167](/packages/automattic-jetpack-autoloader)[drupal/core-composer-scaffold

A flexible Composer project scaffold builder.

5346.5M600](/packages/drupal-core-composer-scaffold)[drupal/core-project-message

Adds a message after Composer installation.

2125.4M213](/packages/drupal-core-project-message)[mnsami/composer-custom-directory-installer

A composer plugin, to help install packages of different types in custom paths.

1435.5M65](/packages/mnsami-composer-custom-directory-installer)[phpro/grumphp-shim

GrumPHP Phar distribution

284.9M348](/packages/phpro-grumphp-shim)[altis/core

Core module for Altis

19233.0k4](/packages/altis-core)

PHPackages © 2026

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