PHPackages                             suifeng412/autoload-tool - 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. suifeng412/autoload-tool

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

suifeng412/autoload-tool
========================

Autoload class file

v0.1.3(7y ago)1151MITPHPPHP &gt;=7.0

Since Oct 30Pushed 7y agoCompare

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

READMEChangelogDependenciesVersions (5)Used By (0)

PHP自动加载类工具
==========

[](#php自动加载类工具)

简介
--

[](#简介)

完全兼容PSR-0和PSR-4规则的PHP类自动加载工具

安装
--

[](#安装)

- composer安装

```
$ composer require suifeng412/autoload-tool

```

使用
--

[](#使用)

- 基本使用

```
// 设置配置
define('FORCE_GET_DIRS', 'true');       // 设置每次强制遍历目录
define('FUNCTION_DIR', 'functions');

// 在index.php入口文件中引入autoload.php文件，在Initialization::init(__DIR__)方法
require __DIR__ . '/vendor/autoload.php';
\AutoloadTool\Initialization::init(__DIR__);

```

- 常量

```
FORCE_GET_DIRS： true|false  // 设置每次是否强制遍历目录；默认为false
FUNCTION_DIR：functions  // 设置自动加载函数文件目录；默认自动加载functions目录下的函数文件

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

4

Last Release

2745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1cba472480cc05f6d96302f36fc702935c3960d9a68a9f79e5d859a5430a609?d=identicon)[随风](/maintainers/%E9%9A%8F%E9%A3%8E)

---

Top Contributors

[![suifeng412](https://avatars.githubusercontent.com/u/26303908?v=4)](https://github.com/suifeng412 "suifeng412 (14 commits)")

### Embed Badge

![Health badge](/badges/suifeng412-autoload-tool/health.svg)

```
[![Health](https://phpackages.com/badges/suifeng412-autoload-tool/health.svg)](https://phpackages.com/packages/suifeng412-autoload-tool)
```

###  Alternatives

[welp/ical-bundle

Symfony Bundle to manage .ics iCal file (creating and eventually reading)

10114.3k](/packages/welp-ical-bundle)

PHPackages © 2026

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