PHPackages                             djiele/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. djiele/autoloader

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

djiele/autoloader
=================

Another class loader using PHP tokenizer

7.3.1-stable(5y ago)011MITPHPPHP &gt;=7.3.1

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/djiele/autoloader)[ Packagist](https://packagist.org/packages/djiele/autoloader)[ RSS](/packages/djiele-autoloader/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Autoloader
==========

[](#autoloader)

This class became necessary during the development of websites using old libraries not conforming to PSR recommendations. This class parses scripts using PHP tokenizer extension allowing to find more than one class per file. Namespaces are also supported. Sometimes it can be useful to see in which file a class reside.

##### Installation

[](#installation)

You can install the package via composer:

```
composer require djiele/autoloader dev-master

```

##### Usage

[](#usage)

```
// including the class file
require_once 'path/to/class/Autoloader.php';
// or using composer
require_once 'vendor/autoload.php'

use Djiele\PHP\Autoloader;

$autoloaderId = 'my-project-autoloader';
$useCache = true; // true to create/refresh and use generated cache file
$classLoader = new Autoloader($autoloaderId, $useCache);
$classLoader
    ->setClassMapDir('cache/autoloader') // path to the cache file, created if not exists
    ->setFolders(['src', 'packages']) // array of directories to be analyzed
    ->register() // launch the analyze and register the class in autoload chain
;
```

Et voilà!

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

2

Last Release

2155d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/40306999?v=4)[djiele](/maintainers/djiele)[@djiele](https://github.com/djiele)

---

Top Contributors

[![djiele](https://avatars.githubusercontent.com/u/40306999?v=4)](https://github.com/djiele "djiele (8 commits)")

---

Tags

autoloadclasstokenizerclass loaderspl\_autoload\_register

### Embed Badge

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

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

###  Alternatives

[yethee/tiktoken

PHP version of tiktoken

1623.7M28](/packages/yethee-tiktoken)[gioni06/gpt3-tokenizer

PHP package for Byte Pair Encoding (BPE) used by GPT-3.

84572.5k11](/packages/gioni06-gpt3-tokenizer)[rajentrivedi/tokenizer-x

TokenizerX calculates required tokens for given prompt

91242.5k3](/packages/rajentrivedi-tokenizer-x)[nicoswd/php-rule-parser

Rule Engine - Rule Parser &amp; Evaluator

13080.4k7](/packages/nicoswd-php-rule-parser)[jeremeamia/functionparser

Function parser for PHP functions, methods, and closures

48172.5k6](/packages/jeremeamia-functionparser)[danny50610/bpe-tokeniser

PHP port for openai/tiktoken (most)

10442.7k2](/packages/danny50610-bpe-tokeniser)

PHPackages © 2026

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