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

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

afragen/autoloader
==================

PSR-4 style autoloader and classmap loader.

3.0.1(1y ago)41.8k↑25%1MITPHPPHP &gt;=7.1

Since Nov 27Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Autoloader
----------

[](#autoloader)

This repository contains a generic class autoloader that will load classes from a PSR-4 namespace root directory and an alternate directory/location for vendor or classmap of classes necessary for your plugin.

PRs welcome, especially for additional class aliases as you find needing them. Please refer to the readme in that folder for additional information on how to create these.

This is an alternative to composer's autoload creator.

```
$root = [ 'My_Namespace' => 'path/to/my-namespace' ];
$classmap = [
    'Extra_Class' => 'path/to/extra-class.php',
    'AnotherClass' => 'path/to/class-another.php',
];

require_once 'Autoloader.php';
new \Fragen\Autoloader( $root, $classmap );
```

Changelog
---------

[](#changelog)

[CHANGES.md](CHANGES.md)

Credits
-------

[](#credits)

Built by [Andy Fragen](https://thefragens.com/)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance43

Moderate activity, may be stable

Popularity26

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

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

Total

2

Last Release

453d ago

PHP version history (2 changes)3.0.0PHP &gt;=5.6

3.0.1PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/82779a185fccde41e1dd3b914bde84cd6be76c8dcb8f6b983f461c8f5687a87e?d=identicon)[afragen](/maintainers/afragen)

---

Top Contributors

[![afragen](https://avatars.githubusercontent.com/u/1296790?v=4)](https://github.com/afragen "afragen (16 commits)")

---

Tags

autoload

### Embed Badge

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

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

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.4k187.2M2.6k](/packages/composer-composer)[nette/robot-loader

🍀 Nette RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.

89352.7M321](/packages/nette-robot-loader)[classpreloader/classpreloader

Helps class loading performance by generating a single PHP file containing all of the autoloaded files for a specific use case

37642.4M32](/packages/classpreloader-classpreloader)[funkjedi/composer-include-files

Include files at a higher priority than autoload files.

1263.2M19](/packages/funkjedi-composer-include-files)[automattic/jetpack-autoloader

Creates a custom autoloader for a plugin or theme.

525.5M69](/packages/automattic-jetpack-autoloader)[shipmonk/name-collision-detector

Simple tool to find ambiguous classes or any other name duplicates within your project.

362.1M35](/packages/shipmonk-name-collision-detector)

PHPackages © 2026

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