PHPackages                             metashock/jm\_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. metashock/jm\_autoloader

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

metashock/jm\_autoloader
========================

Implementation of the SPL autoload mechanism

014PHP

Since Sep 24Pushed 12y ago1 watchersCompare

[ Source](https://github.com/metashock/Jm_Autoloader)[ Packagist](https://packagist.org/packages/metashock/jm_autoloader)[ RSS](/packages/metashock-jm-autoloader/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

J@m; Autoloader
===============

[](#jm-autoloader)

Since PHP 5.1.2 introduced the possibility to load class files dynamically at runtime, it is a wide used functionality and core of most PHP Frameworks. Jm uses `autoloading` too. Therefore all other Jm packages will depend on `Jm_Autoloader`.

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

[](#installation)

To install Jm\_Autoloader you can use the PEAR installer or get a tarball and install the files manually.

---

### Using the PEAR installer

[](#using-the-pear-installer)

If you haven't discovered my pear channel yet you'll have to do it. Also you should issue a channel update:

```
pear channel-discover metashock.de/pear
pear channel-update metashock

```

After this you can install Jm\_Autoloader. Note that if you installed one of the other Jm packages before it is likely that you have already installed Jm\_Autoloader as its a dependency of the most jAm packages. The following command will install the lastest stable version:

```
pear install -a metashock/Jm_Autoloader

```

If you want to install a specific version or a beta version you'll have to specify this version on the command line. For example:

```
pear install -a metashock/Jm_Autoloader-0.3.0

```

---

### Manually download and install files

[](#manually-download-and-install-files)

Alternatively, you can just download the package from  and put into a folder listed in your include\_path. Please refer to the php.net documentation of the include\_path directive.

Documentation
-------------

[](#documentation)

### API documentation

[](#api-documentation)

The API docs can be found here:

```
http://metashock.de/docs/api/Jm/Autoloader/index.html

```

### How to name classes?

[](#how-to-name-classes)

Currently the J@m; Autoloader only supports the PEAR style naming scheme that uses underscores to separate between package names and classnames. This is the scheme used to code J@m; itself.

For example the Autolader expects the following class in a file name `View/Html/Table.php`

```
    class View_Html_Table {
       // ...
```

If you use the default configuration, Jm\_Autoloader will search in paths listed in `ini_get('include_path');`. You can add paths using the methods `addPath` and `prependPath`.

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![metashock](https://avatars.githubusercontent.com/u/412228?v=4)](https://github.com/metashock "metashock (20 commits)")

### Embed Badge

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

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

###  Alternatives

[spatie/color

A little library to handle color conversions

38220.5M34](/packages/spatie-color)

PHPackages © 2026

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