PHPackages                             mimic/cctools - 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. mimic/cctools

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

mimic/cctools
=============

基于Laravel的开源工具库

v1.7.9(3y ago)1181Apache-2.0PHPPHP ^7.3|^7.4|^8.0|^8.1

Since Feb 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/shine96/cctools)[ Packagist](https://packagist.org/packages/mimic/cctools)[ RSS](/packages/mimic-cctools/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (10)Dependencies (5)Versions (46)Used By (0)

CCTools工具类使用说明
--------------

[](#cctools工具类使用说明)

### RSA工具类

[](#rsa工具类)

```
//sha256 2048位算法

RsaUtil::PubKeyEncrypt(); //公钥加密
RsaUtil::PriKeyDecrypt(); //私钥解密

RsaUtil::PriKeyEncrypt(); //私钥加密
RsaUtil::PubKeyDecrypt(); //公钥解密

```

### 统一Response返回格式

[](#统一response返回格式)

```
ResponseLayout::apply(boolean,data,message);

```

### Eloquent ORM插件

[](#eloquent-orm插件)

```
use Datetime;  //替换Laravel7以上默认数据库时间为北京时间格式
use UUIDTrait; //使用UUID当作主键
use HasSnowFlakeId //使用雪花算法唯一ID当作主键

```

### ValidatorTools 验证器工具

[](#validatortools-验证器工具)

- 多场景验证器类，参考ThinkPHP验证器

### StrUtil 工具类

[](#strutil-工具类)

```
StrUtil::randStr($length)  //指定长度随机字符串，用于文件名，随机token等
StrUtil::desensitize($string,$start,$length,$re)  //脱敏工具类

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity74

Established project with proven stability

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

Recently: every ~60 days

Total

44

Last Release

1388d ago

PHP version history (3 changes)v1.2PHP ^7.2|^8.0

v1.7.6PHP ^7.3|^7.4|^8.0

v1.7.9PHP ^7.3|^7.4|^8.0|^8.1

### Community

Maintainers

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

---

Top Contributors

[![shine96](https://avatars.githubusercontent.com/u/58157887?v=4)](https://github.com/shine96 "shine96 (49 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mimic-cctools/health.svg)

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

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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