PHPackages                             xwp/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. xwp/wp-autoload

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

xwp/wp-autoload
===============

1.0.0(2y ago)24PHP

Since May 17Pushed 2y ago28 watchersCompare

[ Source](https://github.com/xwp/io-php-wp-autoload)[ Packagist](https://packagist.org/packages/xwp/wp-autoload)[ RSS](/packages/xwp-wp-autoload/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

WP Autoload
-----------

[](#wp-autoload)

PHP autoloader for projects with [file naming conventions from WordPress coding standards](https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#naming-conventions).

Attempts to resolve classes, interfaces and traits.

Usage
-----

[](#usage)

Add this library as a dependency for your project:

```
composer require xwp/wp-autoload

```

Register the namespace mapping to folders containing your code:

```
$autoload = new XWP\IO\WP_Autoload\Autoload();

$autoload->add(
	__DIR__ . '/php',
	'YourVendor\Project'
);

$autoload->add(
	__DIR__ . '/lib/rest-api',
	'Another_Vendor\Rest_Api'
);

// Now instantiate the class without any includes.
$api = new YourVendor\Project\Module_One\Api();
```

For example, a request for `YourVendor\Project\Module_One\Api` will attempt to include the following files:

- `.../php/module-one/class-api.php`
- `.../php/module-one/interface-api.php`
- `.../php/module-one/trait-api.php`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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 ~559 days

Total

2

Last Release

949d ago

Major Versions

0.0.1 → 1.0.02023-11-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/169055?v=4)[Kaspars Dambis](/maintainers/kasparsd)[@kasparsd](https://github.com/kasparsd)

![](https://www.gravatar.com/avatar/415bc53586018077324af64dad074bf430ba1b72471550489372668274a13b12?d=identicon)[xwp](/maintainers/xwp)

### Embed Badge

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

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

###  Alternatives

[foroco/php-browser-detection

Ultra fast PHP library to detect browser, OS, platform and device type by User-Agent parsing

1545.5M7](/packages/foroco-php-browser-detection)[previewtechs/cpanel-whm-api

Manage WHM and cPanel servers with PHP

221.1k](/packages/previewtechs-cpanel-whm-api)

PHPackages © 2026

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