PHPackages                             swoft-rewrite/swoft-annotation - 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. [Framework](/categories/framework)
4. /
5. swoft-rewrite/swoft-annotation

ActiveLibrary[Framework](/categories/framework)

swoft-rewrite/swoft-annotation
==============================

分布式开始，重写swoft框架之 -- annotation 模块

032PHP

Since Jun 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/CoderShawnZhang/swoft-annotation)[ Packagist](https://packagist.org/packages/swoft-rewrite/swoft-annotation)[ RSS](/packages/swoft-rewrite-swoft-annotation/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

swoft-annotation
================

[](#swoft-annotation)

单元测试
====

[](#单元测试)

phpunit test/unit/AnnotationTest.php

\#测试单个函数 phpunit test/unit/AnnotationTest.php --filter testParser --coverage-html test/codeCoverage/

代码覆盖率
=====

[](#代码覆盖率)

phpunit test/unit/AnnotationTest.php --coverage-html test/codeCoverage/

\#如何使用 $config = \[\]; AnnotationRegister::load($config);

/\*\*

- Class EnumParser
-
- @since 2.0
-
- @AnnotationParser(annotation=Enum::class) \*/

会自动扫描该类

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/4350258?v=4)[shawn](/maintainers/CoderShawnZhang)[@CoderShawnZhang](https://github.com/CoderShawnZhang)

---

Top Contributors

[![CoderShawnZhang](https://avatars.githubusercontent.com/u/4350258?v=4)](https://github.com/CoderShawnZhang "CoderShawnZhang (17 commits)")

### Embed Badge

![Health badge](/badges/swoft-rewrite-swoft-annotation/health.svg)

```
[![Health](https://phpackages.com/badges/swoft-rewrite-swoft-annotation/health.svg)](https://phpackages.com/packages/swoft-rewrite-swoft-annotation)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M841](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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