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

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

marshung/autoloader
===================

Provides automatic loading of services during development

1.0.4(7y ago)036MITPHP

Since Jun 2Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

開發用autoloader
=============

[](#開發用autoloader)

說明
==

[](#說明)

提供各模組路徑對映，以達成自動載入類別檔-模擬已安裝狀態

用法
==

[](#用法)

1. 安裝marshung/autoloader

```
$ composer require marshung/autoloader 1.*

```

2. 在與vendor同層目錄中建立檔案autoload.conf.php
3. 設定路徑對映資料陣列$pathMap

- 格式：$pathMap\[$namePath\] = $dirPatch;

4. 執行此autoloader，如使用framework，可配置在framework設定檔中自動執行

```
// CodeIgniter: application/config/config.php
$config['enable_hooks'] = TRUE;
// CodeIgniter: application/config/hooks.php
$hook['pre_system'][] = [new \marshung\Autoloader, 'autoloader'];

```

```
// Manual call
\marshung\Autoloader::autoloader();

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

2881d ago

### Community

Maintainers

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

---

Top Contributors

[![marshung24](https://avatars.githubusercontent.com/u/34496839?v=4)](https://github.com/marshung24 "marshung24 (6 commits)")

### Embed Badge

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

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

PHPackages © 2026

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