PHPackages                             lit/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. [HTTP &amp; Networking](/categories/http)
4. /
5. lit/utils

ActiveLibrary[HTTP &amp; Networking](/categories/http)

lit/utils
=========

二次封装的一些常用 PHP 工具

v0.3.7(4mo ago)616.7k↓37.5%11MITPHPPHP &gt;=5.6.0CI failing

Since Jun 11Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/ghostong/LitUtils)[ Packagist](https://packagist.org/packages/lit/utils)[ RSS](/packages/lit-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (17)Used By (1)

LitUtils PHP
============

[](#litutils-php)

LitUtils PHP 帮助文件.

写在前面
----

[](#写在前面)

```
- 此项目出生是为了"实现一些常用又不内置的PHP方法(函数)".
- 项目目录中的 demo.php 可以直观的帮助理解代码.
- 如果您有任何问题,请在git issure 中创建问题或者自由创建分支.

```

安装
--

[](#安装)

```
composer require lit/utils

```

帮助文档
----

[](#帮助文档)

### 函数

[](#函数)

1. [数组](doc/LiArray.md)
2. [字符串](doc/LiString.md)
3. [逻辑运算](doc/LiStructures.md)
4. [日期时间](doc/LiDate.md)
5. [数学函数](doc/LiMath.md)
6. [文件类型](doc/LiFileType.md)
7. [杂项](doc/LiSundry.md)

### 工具

[](#工具)

1. [简单用户系统](doc/LiEasyAuth.md)
2. [HTTP访问签名](doc/LiSignature.md)
3. [带版本的文件操作](doc/LiVersionFile.md)
4. [数据映射](doc/LiMapper.md)
5. [简单数据映射](doc/LiEasyMapper.md)
6. [查询映射](doc/LiSelector.md)
7. [进程内缓存](doc/LiTransit.md)
8. [类错误信息](doc/LiErrMsg.md)
9. [常量(枚举)定义](doc/LiConst.md)
10. [文件缓存](doc/LiFileCache.md)
11. [文件监听](doc/LiFileListen.md)
12. [文件操作](doc/LiFileOperator.md)
13. [简单日志](doc/LiLogs.md)
14. [位开关](doc/LiBitSwitch.md)

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance75

Regular maintenance activity

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

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

Recently: every ~88 days

Total

15

Last Release

135d ago

PHP version history (2 changes)v0.2.10PHP &gt;=5.4.0

v0.2.21PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/46be0247284f1f1256accab2ccdb4900e568f6df746a9dc96bf7d6fdfd614d0d?d=identicon)[litong](/maintainers/litong)

---

Top Contributors

[![ghostong](https://avatars.githubusercontent.com/u/5644948?v=4)](https://github.com/ghostong "ghostong (184 commits)")

---

Tags

httpcsvIPlitoolliarraylidatelistringlidebugliutilslimathliconst

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.0B3.2k](/packages/guzzlehttp-psr7)[psr/http-message

Common interface for HTTP messages

7.1k1.0B5.5k](/packages/psr-http-message)[psr/http-factory

PSR-17: Common interfaces for PSR-7 HTTP message factories

1.9k692.9M1.9k](/packages/psr-http-factory)[psr/http-client

Common interface for HTTP clients

1.7k680.7M2.1k](/packages/psr-http-client)[symfony/http-client

Provides powerful methods to fetch HTTP resources synchronously or asynchronously

2.0k314.0M3.4k](/packages/symfony-http-client)[psr/link

Common interfaces for HTTP links

2.5k144.1M68](/packages/psr-link)

PHPackages © 2026

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