PHPackages                             douyuxingchen/php-library-stateful - 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. douyuxingchen/php-library-stateful

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

douyuxingchen/php-library-stateful
==================================

有状态的库旨在简化您的业务代码和优化您的业务架构，将底层基础设施沉淀到基础库，如 Redis 分布式锁定，数据查询缓存等等。

v1.0.1(2y ago)15.5k↓86.2%GPL-3.0-onlyPHPPHP ^7.2.5|^8.0

Since Aug 8Pushed 2y agoCompare

[ Source](https://github.com/douyuxingchen/php-library-stateful)[ Packagist](https://packagist.org/packages/douyuxingchen/php-library-stateful)[ RSS](/packages/douyuxingchen-php-library-stateful/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

PHP有状态库
=======

[](#php有状态库)

该库为您的项目提供了一组有用的工具，用于处理各种有状态的操作。它旨在简化您的业务代码和优化您的业务架构，将底层基础设施沉淀到基础库，如 Redis 分布式锁定，数据查询缓存等等。

服务支持
----

[](#服务支持)

- Redis分布式锁：支持加锁、解锁、锁续期、可重入锁、自旋锁

说明文档
----

[](#说明文档)

### 安装

[](#安装)

```
composer require "douyuxingchen/php-library-stateful"
```

### 更新

[](#更新)

```
composer update "douyuxingchen/php-library-stateful" --ignore-platform-reqs
```

使用指南
----

[](#使用指南)

请参阅我们的完整[文档](docs)以了解如何使用此库、添加新服务类、处理状态和错误等更多详细信息。

版权和许可
-----

[](#版权和许可)

本项目基于 \[GPL-3.0\] 许可证。请查阅 LICENSE 文件以获取更多信息。

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

1061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/50bca77c709c1787142d32a6f1b3593fabae01591dd996f736ddae4a4618bf7a?d=identicon)[jefferyjob](/maintainers/jefferyjob)

---

Top Contributors

[![jefferyjob](https://avatars.githubusercontent.com/u/24731115?v=4)](https://github.com/jefferyjob "jefferyjob (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/douyuxingchen-php-library-stateful/health.svg)

```
[![Health](https://phpackages.com/badges/douyuxingchen-php-library-stateful/health.svg)](https://phpackages.com/packages/douyuxingchen-php-library-stateful)
```

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.4k](/packages/blair2004-nexopos)

PHPackages © 2026

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