PHPackages                             constanze-standard/fluff - 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. constanze-standard/fluff

ActiveLibrary[Framework](/categories/framework)

constanze-standard/fluff
========================

The Fluff micro framework.

1.0.1(6y ago)172Apache-2.0PHPPHP &gt;=7.1CI failing

Since Nov 3Pushed 1y agoCompare

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

READMEChangelog (2)Dependencies (11)Versions (4)Used By (0)

[![GitHub license](https://camo.githubusercontent.com/1e07db00d547cb8acb3caf3b24ddbb417ed0a2319a5633cf69b1528ba0f49f1e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d417061636865253230322d626c7565)](https://github.com/constanze-standard/fluff/blob/master/LICENSE)

Fluff Micro Framework
=====================

[](#fluff-micro-framework)

Fluff 是什么？
----------

[](#fluff-是什么)

- Fluff 是一个多核心的 PHP [微框架](https://en.wikipedia.org/wiki/Microframework)，它为应用程序的构建提供多种形式的解决方案。
- Fluff 是一个能够随需求的增加而不断成长的渐进式框架。从一段处理逻辑到一个庞大的架构，它可以以任何形式出现在你的程序之中。

安装
--

[](#安装)

```
composer require constanze-standard/fluff:^1.0
```

示例
--

[](#示例)

需要安装组件 [`nyholm/psr7`](https://github.com/Nyholm/psr7)

```
use ConstanzeStandard\Fluff\Application;
use ConstanzeStandard\Fluff\RequestHandler\Args;
use ConstanzeStandard\Fluff\RequestHandler\Delay;
use ConstanzeStandard\Fluff\RequestHandler\Dispatcher;

require __DIR__ . '/../vendor/autoload.php';

// 调用策略 ↓
$definition = Args::getDefinition();
// 延迟策略 ↓
$definition = Delay::getDefinition(function($className, $method) {
    return [new $className, $method];
}, $definition);
// 路由派发策略
$core = new Dispatcher($definition);
// 创建应用
$app = new Application($core);
```

学习 Fluff
--------

[](#学习-fluff)

如上例所示，Fluff 的核心是可替换的，选用不同的核心将会启用不同的特性。了解更多使用方式，请访问 [Fluff 官方网站](https://www.fluff-framework.cn/)。

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Total

2

Last Release

2319d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f4cfe2ff9c9a5fe469dd2701b7c22132e5b5a9e053a32c54d7ae90cfe565ef3?d=identicon)[Alex Layton](/maintainers/Alex%20Layton)

---

Top Contributors

[![alex-1900](https://avatars.githubusercontent.com/u/49949411?v=4)](https://github.com/alex-1900 "alex-1900 (97 commits)")

---

Tags

apiflufffluff-micro-frameworkphpphp-frameworkpsrapiframeworkmicrofluff

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/constanze-standard-fluff/health.svg)

```
[![Health](https://phpackages.com/badges/constanze-standard-fluff/health.svg)](https://phpackages.com/packages/constanze-standard-fluff)
```

###  Alternatives

[slim/slim

Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and APIs

12.2k49.9M1.3k](/packages/slim-slim)[phprest/phprest

PHP Rest Framework.

3049.3k](/packages/phprest-phprest)

PHPackages © 2026

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