PHPackages                             porygon/base - 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. porygon/base

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

porygon/base
============

base module for porygon

016PHP

Since Feb 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PorygonCN/base)[ Packagist](https://packagist.org/packages/porygon/base)[ RSS](/packages/porygon-base/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dcat Admin Extension
====================

[](#dcat-admin-extension)

```
porygon-base Dcat系列扩展包的基础包
包含一些公共的功能

```

Exception 错误类
-------------

[](#exception-错误类)

提供自定义报错基类 Exception

ButtonDisplayer 操作栏按钮显示样式
-------------------------

[](#buttondisplayer-操作栏按钮显示样式)

提供 button 样式的 grid displayer (默认几个按钮的) 自定义的按钮如果想要有`button`样式需要将按钮`title`用`div`或者`button`包裹并添加`btn`的相关`class`

Helper 工具方法
-----------

[](#helper-工具方法)

Helpers 文件夹下提供了一下工具方法

requestLog middleware 请求中间件
---------------------------

[](#requestlog-middleware-请求中间件)

扩展注册时`log` 中间件 可以记录请求的相关信息

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

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://www.gravatar.com/avatar/72b12ea5b0d8a6577d82ef460c6010e74677e14d796ac316408085a69c402a39?d=identicon)[porygon](/maintainers/porygon)

---

Top Contributors

[![PorygonCN](https://avatars.githubusercontent.com/u/31176914?v=4)](https://github.com/PorygonCN "PorygonCN (6 commits)")

### Embed Badge

![Health badge](/badges/porygon-base/health.svg)

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

PHPackages © 2026

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