PHPackages                             alleyinteractive/wordpress-autoloader - 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. alleyinteractive/wordpress-autoloader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

alleyinteractive/wordpress-autoloader
=====================================

Autoload files using WordPress File Conventions

v1.2.1(1y ago)9589.0k—8.6%1[3 PRs](https://github.com/alleyinteractive/wordpress-autoloader/pulls)3GPL-2.0-or-laterPHPPHP ^8.1CI passing

Since Feb 2Pushed 4mo ago25 watchersCompare

[ Source](https://github.com/alleyinteractive/wordpress-autoloader)[ Packagist](https://packagist.org/packages/alleyinteractive/wordpress-autoloader)[ RSS](/packages/alleyinteractive-wordpress-autoloader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (2)Versions (13)Used By (3)

WordPress Autoloader
====================

[](#wordpress-autoloader)

[![Latest Version on Packagist](https://camo.githubusercontent.com/dd36f7bb6d538d728c967dc4169bc2471595d82ba35169c489b7be8628344397/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6c6579696e7465726163746976652f776f726470726573732d6175746f6c6f616465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alleyinteractive/wordpress-autoloader)[![Tests](https://github.com/alleyinteractive/wordpress-autoloader/actions/workflows/tests.yml/badge.svg)](https://github.com/alleyinteractive/wordpress-autoloader/actions/workflows/tests.yml)

A PHP Autoloader that supports the [WordPress Coding Standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/). For example, a folder that looks like this would be autoloaded as:

```
src/class-example-class.php -> Root_Namespace\Example_Class
src/trait-reusable-feature.php -> Root_Namesace\Reusable_Feature
src/feature/class-example-feature.php -> Root_Namespace\Feature\Example_Feature

```

Supports `class`, `trait`, `interface`, and `enum` files and any level of namespaces.

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

[](#installation)

You can install the package via composer:

```
composer require alleyinteractive/wordpress-autoloader
```

Usage
-----

[](#usage)

```
Alley_Interactive\Autoloader\Autoloader::generate(
	'Plugin\\Namespace',
	__DIR__ . '/src',
)->register();

// Or register the autoloader manually.
spl_autoload_register(
	Alley_Interactive\Autoloader\Autoloader::generate(
		'Plugin\\Namespace',
		__DIR__ . '/src',
	)
);
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance64

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 72.9% 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 ~146 days

Recently: every ~269 days

Total

9

Last Release

392d ago

Major Versions

v0.2.0 → v1.0.02022-05-10

PHP version history (3 changes)0.1.0PHP ^7.4.0 || ^8.0

v0.2.0PHP ^7.4.0|^8.0|^8.1

v1.2.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/338d27065b1074f2d66d049d742f22996dd137eef6f91bc8f75350ceee1e8ef2?d=identicon)[srtfisher](/maintainers/srtfisher)

---

Top Contributors

[![srtfisher](https://avatars.githubusercontent.com/u/346399?v=4)](https://github.com/srtfisher "srtfisher (70 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (10 commits)")

---

Tags

wordpress

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/alleyinteractive-wordpress-autoloader/health.svg)

```
[![Health](https://phpackages.com/badges/alleyinteractive-wordpress-autoloader/health.svg)](https://phpackages.com/packages/alleyinteractive-wordpress-autoloader)
```

PHPackages © 2026

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