PHPackages                             friendsofhyperf/macros - 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. friendsofhyperf/macros

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

friendsofhyperf/macros
======================

The commonly used macros for Hyperf.

v3.2.1(3w ago)038.0k↓17.5%1MITPHP

Since May 21Pushed 2w ago1 watchersCompare

[ Source](https://github.com/friendsofhyperf/macros)[ Packagist](https://packagist.org/packages/friendsofhyperf/macros)[ Fund](https://hdj.me/sponsors/)[ GitHub Sponsors](https://github.com/huangdijia)[ RSS](/packages/friendsofhyperf-macros/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (14)Versions (159)Used By (1)

Macros
======

[](#macros)

[中文说明](README_CN.md)

[![Latest Stable Version](https://camo.githubusercontent.com/f23f967f587eddfee4f948d83d85f3034b6acfcd216087faf1c449628d754433/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667269656e64736f666879706572662f6d6163726f73)](https://packagist.org/packages/friendsofhyperf/macros)[![Total Downloads](https://camo.githubusercontent.com/c136eabc7bffa2767d8685781a4b66058a98969ed2f9f2a6540f42b989deb933/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667269656e64736f666879706572662f6d6163726f73)](https://packagist.org/packages/friendsofhyperf/macros)[![License](https://camo.githubusercontent.com/acdbec907e3fb3a8b51852a4b3ca7478a8795aaaa8c2c52a6ed2eeae1bbca093/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f667269656e64736f666879706572662f6d6163726f73)](https://github.com/friendsofhyperf/macros)

The commonly used macros for Hyperf.

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

[](#installation)

- Request

```
composer require friendsofhyperf/macros
```

Contact
-------

[](#contact)

- [Twitter](https://twitter.com/huangdijia)
- [Gmail](mailto:huangdijia@gmail.com)

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance96

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 98.7% 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 ~9 days

Recently: every ~47 days

Total

158

Last Release

25d ago

Major Versions

v2.0.19 → v3.0.0-rc.142022-09-20

v2.0.21 → v3.0.0-rc.152022-09-21

v2.0.22 → v3.0.0-rc.312022-11-28

v2.0.25 → v3.0.0-rc.462022-12-20

v2.0.28 → v3.0.42023-01-24

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8337659?v=4)[Deeka Wong](/maintainers/huangdijia)[@huangdijia](https://github.com/huangdijia)

---

Top Contributors

[![huangdijia](https://avatars.githubusercontent.com/u/8337659?v=4)](https://github.com/huangdijia "huangdijia (147 commits)")[![binaryfire](https://avatars.githubusercontent.com/u/5361908?v=4)](https://github.com/binaryfire "binaryfire (1 commits)")[![xuanyanwow](https://avatars.githubusercontent.com/u/28777109?v=4)](https://github.com/xuanyanwow "xuanyanwow (1 commits)")

---

Tags

hyperfv3.2

### Embed Badge

![Health badge](/badges/friendsofhyperf-macros/health.svg)

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

###  Alternatives

[hyperf/database

A flexible database library.

192.9M324](/packages/hyperf-database)[hyperf/http-server

A HTTP Server for Hyperf.

103.0M373](/packages/hyperf-http-server)[friendsofhyperf/lock

The lock component for Hyperf.

1453.6k](/packages/friendsofhyperf-lock)[hyperf/crontab

A crontab component for Hyperf.

131.7M77](/packages/hyperf-crontab)[hyperf/validation

hyperf validation

122.2M200](/packages/hyperf-validation)[hyperf/di

A DI for Hyperf.

173.0M695](/packages/hyperf-di)

PHPackages © 2026

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