PHPackages                             missing-u/output-formatter - 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. missing-u/output-formatter

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

missing-u/output-formatter
==========================

laravel 输出格式化

1.0.0(6y ago)02MITPHPPHP &gt;=7.2.0

Since Aug 20Pushed 6y ago1 watchersCompare

[ Source](https://github.com/missing-u/output-formatter)[ Packagist](https://packagist.org/packages/missing-u/output-formatter)[ RSS](/packages/missing-u-output-formatter/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

#### 公共输出

[](#公共输出)

### 关于分页

[](#关于分页)

```

为了性能　 新写接口　返回的总条数不再准确

返回总条数的逻辑

假设接收到的　页码　是 3(第三页) 每页的数量是 20
如果查询到的结果是　20 条
　则返回的是　(3+1) * 20

如果查询到的结果小于　20 条
　则返回的是　(3) * 20

目前的前端并不展示具体的条数　只是根据条数计算出页数

可能后期的优化方案是　不再返回条数 返回的是　是否存在下一页参数

(暂未处理边界情况 即总共　60条　但是实际逻辑返回的是　4页)

```

#### todo

[](#todo)

最终输出格式

目前情况是可以注入

但是不能以配置的形式写死

导致每次调用的时候都需要赋值

较繁琐 需要考虑

#### 没有办法解决依赖问题

[](#没有办法解决依赖问题)

```
    获取默认 所在页数 和 每页数量的问题

    现在默认 默认第一页

    现在默认 每页20条

    成功的code码和失败的code码都写死了

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

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

Unknown

Total

1

Last Release

2507d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/158706873?v=4)[FlyInTheSea](/maintainers/FlyInTheSea)[@flyinthesea](https://github.com/flyinthesea)

---

Top Contributors

[![missing-u](https://avatars.githubusercontent.com/u/8327028?v=4)](https://github.com/missing-u "missing-u (3 commits)")

### Embed Badge

![Health badge](/badges/missing-u-output-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/missing-u-output-formatter/health.svg)](https://phpackages.com/packages/missing-u-output-formatter)
```

###  Alternatives

[symfony/service-contracts

Generic abstractions related to writing services

2.6k895.7M530](/packages/symfony-service-contracts)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k40.0M2.6k](/packages/ergebnis-composer-normalize)

PHPackages © 2026

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