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

ActiveLibrary

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 6d 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 14% 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

2338d 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

the new thinkphp framework

8.0k1.2M13](/packages/topthink-think)[topthink/think-queue

The ThinkPHP6 Queue Package

640675.0k75](/packages/topthink-think-queue)[topthink/think-swoole

Swoole extend for thinkphp

477174.4k19](/packages/topthink-think-swoole)[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[topthink/think-migration

96460.8k121](/packages/topthink-think-migration)

PHPackages © 2026

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