PHPackages                             853868671/william - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. 853868671/william

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

853868671/william
=================

php log

0131PHP

Since Jun 17Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

william
=======

[](#william)

安装 install
==========

[](#安装-install)

```
	comoser require "853868671/william":"dev-master"

```

日志代码事例
======

[](#日志代码事例)

记录并写入
-----

[](#记录并写入)

```
	$log = new Log();
	Log::record('严重错误: 导致系统崩溃无法使用',Log::ALERT);
	Log::record('警戒性错误: 必须被立即修改的错误',Log::ALERT);
	Log::record('临界值错误: 超过临界值的错误，例如一天24小时，而输入的是25小时这样',Log::CRIT);
	Log::record('一般错误: 一般性错误',Log::ERR);
	Log::record('警告性错误: 需要发出警告的错误',Log::WARN);
	Log::record('通知: 程序可以运行但是还不够完美的错误',Log::NOTICE);
	Log::record('信息: 程序输出信息',Log::INFO);
	Log::record('调试: 调试信息',Log::DEBUG);
	Log::record('SQL：SQL语句 注意只在调试模式开启时有效',Log::SQL);
	Log::save();

```

直接写入
----

[](#直接写入)

```
	Log::write('SQL：SQL语句 注意只在调试模式开启时有效',Log::SQL);

```

加密解密事例 加密方式Base64,Crype,Des,Xxtea
=================================

[](#加密解密事例加密方式base64crypedesxxtea)

```
	$crypt = Crypt::getInstance('crypt');

	$en = $crypt::encrypt("crypt",123);

	$de = $crypt::decrypt("crypt",123);

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/946df30c2570ff05fec0f8bd52177eaa666ad6b1e072fe9ed22d7a33dd62f751?d=identicon)[853868671](/maintainers/853868671)

### Embed Badge

![Health badge](/badges/853868671-william/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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