PHPackages                             polarthink/utils - 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. polarthink/utils

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

polarthink/utils
================

polarthink工具库

v0.1(6y ago)012Apache-2.0PHPPHP &gt;=7.1.0

Since Dec 23Pushed 6y ago2 watchersCompare

[ Source](https://github.com/polarthink/utils)[ Packagist](https://packagist.org/packages/polarthink/utils)[ RSS](/packages/polarthink-utils/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

polarthink实用工具库
===============

[](#polarthink实用工具库)

需依赖于[thinkphp6.0](https://github.com/top-think/think)

安装
--

[](#安装)

```
composer require polarthink/utils

```

使用
--

[](#使用)

### 响应返回

[](#响应返回)

```
require_once './vendor/autoload.php';

use utils\reponse\Json;

var_dump(Json::success($msg, $data));
var_dump(Json::error('找不到资源', [], 404));
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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

2384d ago

### Community

Maintainers

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

---

Top Contributors

[![xiaoqingping](https://avatars.githubusercontent.com/u/19622268?v=4)](https://github.com/xiaoqingping "xiaoqingping (2 commits)")

### Embed Badge

![Health badge](/badges/polarthink-utils/health.svg)

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

117970.1k74](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

216235.9k9](/packages/topthink-think-worker)[yunwuxin/think-cron

计划任务

17317.4k](/packages/yunwuxin-think-cron)[liliuwei/thinkphp-jump

适用于thinkphp6.0+的跳转扩展

2876.7k1](/packages/liliuwei-thinkphp-jump)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1578.7k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4833.6k8](/packages/topthink-think-annotation)

PHPackages © 2026

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