PHPackages                             hectorqin/hyperf-fastloader - 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. hectorqin/hyperf-fastloader

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

hectorqin/hyperf-fastloader
===========================

Make hyperf2.0 load faster

v0.3.1(5y ago)217MITPHPPHP &gt;=7.2

Since Jun 23Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (10)Used By (0)

hyperf-fastloader
=================

[](#hyperf-fastloader)

Make hyperf2.0 load faster by only caching file anotations in the vendor directory.

install
-------

[](#install)

```
```bash
composer require hectorqin/hyperf-fastloader
```

```

usage
-----

[](#usage)

This component only take effect when the configure `scan_cache_vendor_only` is turned on and the configure `scan_cacheable` is turned off.

- Init composer classMap (Very important! If you delete PHP class file in the app dirctory or add/remove composer packages, you need to run this command again).

    ```
    composer dump-autoload -o
    ```
- Replace `Hyperf\Di\ClassLoader::init();` with `Hector\FastLoader\ClassLoader::init();`
- Add the configure below to the config file `config/config.php`

    ```
    // is only caching file anotations in the vendor directory
    'scan_cache_vendor_only'     => env('SCAN_CACHE_VENDOR_ONLY', false),
    ```
- Add the configure below to the env file `.env`

    ```
    SCAN_CACHE_VENDOR_ONLY=true
    ```
- Turn off `scan_cacheable`

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

9

Last Release

2142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b8a54eac6e1f748bc947581efd89a684838353116927057f5c98937fb1888c6?d=identicon)[hectorqin](/maintainers/hectorqin)

---

Tags

hyperfhyperf2phpphpclassloaderhyperfhyperf2.0

### Embed Badge

![Health badge](/badges/hectorqin-hyperf-fastloader/health.svg)

```
[![Health](https://phpackages.com/badges/hectorqin-hyperf-fastloader/health.svg)](https://phpackages.com/packages/hectorqin-hyperf-fastloader)
```

###  Alternatives

[hyperf/watcher

Hot reload watcher for Hyperf

17846.7k27](/packages/hyperf-watcher)

PHPackages © 2026

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