PHPackages                             merophp/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. merophp/autoloader

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

merophp/autoloader
==================

Simple PSR-4 autoloader

0.1-beta(4y ago)011MITPHPPHP &gt;=7.4

Since Dec 22Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (2)Versions (3)Used By (1)

Introduction
============

[](#introduction)

Simple PSR-4 autoloader for the merophp framework.

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

[](#installation)

Via composer:

`composer require merophp/autoloader`Basic Usage
-----------

[](#basic-usage)

```
require_once 'vendor/autoload.php';

use Merophp\Autoloader\NamespacePrefix\NamespacePrefix;
use Merophp\Autoloader\NamespacePrefix\Collection\NamespacePrefixCollection;
use Merophp\Autoloader\NamespacePrefix\Provider\NamespacePrefixProvider;
use Merophp\Autoloader\Autoloader;

$collection = new NamespacePrefixCollection();
$collection->addMultiple([
     new NamespacePrefix('Vendor1\\Test', './tests/integration/testData/vendor1'),
     new NamespacePrefix('Vendor2\\Test', './tests/integration/testData/vendor2'),
]);
$provider = new NamespacePrefixProvider($collection);

$autoloader = new Autoloader($provider);

//Now you can call your classes
$serviceA = new Vendor1\Test\Service\ServiceA();
//Expect class in ./tests/integration/testData/vendor1/Service/ServiceA.php

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

2

Last Release

1564d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f873869f98cb1bdf9edb5847f987dfd216e5bc44f934d87875dca5ee20fbefb?d=identicon)[Robert.Becker](/maintainers/Robert.Becker)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k29](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)

PHPackages © 2026

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