PHPackages                             lalalab/autoloadr - 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. lalalab/autoloadr

ActiveLibrary

lalalab/autoloadr
=================

PHP Autoload facilities

1.0.3-stable(8y ago)02.2kPHPPHP &gt;=5.4

Since Jul 29Pushed 7y agoCompare

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

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

Autoladr
--------

[](#autoladr)

### PSR-4 reminder :

[](#psr-4-reminder-)

- The term "class" refers to classes, interfaces, traits, and other similar structures.
- A fully qualified class name has the following form:

    `\(\)*\`
- When loading a file that corresponds to a fully qualified class name :

> 1. A contiguous series of one or more leading namespace and sub-namespace names, not including the leading namespace separator, in the fully qualified class name (a "namespace prefix") corresponds to at least one "base directory".
> 2. The contiguous sub-namespace names after the "namespace prefix" correspond to a subdirectory within a "base directory", in which the namespace separators represent directory separators. The subdirectory name MUST match the case of the sub-namespace names.
> 3. The terminating class name corresponds to a file name ending in .php. The file name MUST match the case of the terminating class name.
> 4. Autoloader implementations MUST NOT throw exceptions, MUST NOT raise errors of any level, and SHOULD NOT return a value.

### Universal Autoloadr :

[](#universal-autoloadr-)

> Work as a common "ClassLoader" (PSR-0) as well
> 2.: The subdirectory name can be lowercase. It still MUST match the namespace names.
> 4.: No exeption, but use Loggr for debuging

- underscore in class\_names: `

    - `\namespace\package\Class_Name` matches `/prefixe/path/to/namespace/package/Class/Name.php`
    - `\Mustache_Engine` matches `/prefixe/path/to/vendor/mustache/src/Mustache/Engine.php`
- underscore in namespace:

    - `\namespace\my_package\Class_Name` matches `/prefixe/path/to/namespace/my_package/Class/Name.php`
- Lower/Upper case :

    - `\Ahoy\Core\Request` matches `/path/to/project/ahoy/core/Request.php`
        or `/path/to/project/Ahoy/Core/Request.php`

#### Exemple

[](#exemple)

```
    $Loadr = new \Autoloadr\Universal();

    $Loadr->add_prefix(_ROOT_DIR_ . '/vendor/knot/src');
    $Loadr->add_prefix(_ROOT_DIR_ . '/vendor/scoutr/src');
    $Loadr->add_prefix(_ROOT_DIR_ . '/vendor/mustache/src');

    $Loadr->register();

    $K = new Knot\Knot();
    $S = new Scoutr\Scout();
    $M = new Mustache_Engine();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

4

Last Release

3267d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22f0c94c1997b7603bae0eae27ee4b20266a4c49e1b936714bbc1972431d5299?d=identicon)[LALALAB](/maintainers/LALALAB)

---

Tags

phpautoloadpsr4autoload-map

### Embed Badge

![Health badge](/badges/lalalab-autoloadr/health.svg)

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

###  Alternatives

[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)

PHPackages © 2026

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