PHPackages                             aichenk/kay-tools - 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. aichenk/kay-tools

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

aichenk/kay-tools
=================

简单工具类集合

2.0.0(4y ago)12.2k↓50%MITPHPPHP &gt;=7.2

Since Dec 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/aiChenK/kay-tools)[ Packagist](https://packagist.org/packages/aichenk/kay-tools)[ RSS](/packages/aichenk-kay-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

kay-tools
=========

[](#kay-tools)

> 工具类

运行环境
----

[](#运行环境)

- PHP 7.2+

安装方法
----

[](#安装方法)

```
    composer require aichenk/kay-tools

```

使用
--

[](#使用)

```
use KayTools\TimeTool;

var_dump(TimeTool::friendlyCost(86670));    //1天4分30秒
```

更新说明
----

[](#更新说明)

2022-03-16 - v2.0.0

- 去除`RequestTool`中客户端信息获取方法
- 去除`whichbrowser/parser`依赖

2021-01-25 - v1.3.4

- 更改`ServerTool`获取域名方法

2020-12-23 - v1.3.3

- 修复`ServerTool`获取域名方法

2020-10-30 - v1.3.2

- `getZeroTimestamp`支持获取13位时间戳

2020-08-05 - v1.3.1

- 增加`whichbrowser/parser`依赖，替换获取浏览器及操作系统方法

2020-07-01 - v1.3.0

- 增加`ServerTool`，支持获取域名等信息
- 移动`isUnderCli|getServerOS`方法到`ServerTool`

2020-06-26 - v1.2.0

- 增加`Tree`类，主要处理导航树等

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Recently: every ~147 days

Total

9

Last Release

1524d ago

Major Versions

1.3.4 → 2.0.02022-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7b581cba80f4aa30ab4a73b3edeecbcdbcc2c4e0c8af6d015e0571d9e2246fd?d=identicon)[aiChenK](/maintainers/aiChenK)

---

Top Contributors

[![aiChenK](https://avatars.githubusercontent.com/u/15376814?v=4)](https://github.com/aiChenK "aiChenK (10 commits)")

### Embed Badge

![Health badge](/badges/aichenk-kay-tools/health.svg)

```
[![Health](https://phpackages.com/badges/aichenk-kay-tools/health.svg)](https://phpackages.com/packages/aichenk-kay-tools)
```

###  Alternatives

[avto-dev/vehicle-logotypes

Vehicle logotypes set

116.1k](/packages/avto-dev-vehicle-logotypes)

PHPackages © 2026

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