PHPackages                             maxlcoder/log\_standard - 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. [API Development](/categories/api)
4. /
5. maxlcoder/log\_standard

ActivePhp-extension[API Development](/categories/api)

maxlcoder/log\_standard
=======================

laravel create doc to apifox

02PHP

Since Jun 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/maxlcoder/log_standard)[ Packagist](https://packagist.org/packages/maxlcoder/log_standard)[ RSS](/packages/maxlcoder-log-standard/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

温州市应用日志采集规范
===========

[](#温州市应用日志采集规范)

安装扩展
----

[](#安装扩展)

```
composer require hzanchu/log_standard
```

在登录接口配置全局变量
-----------

[](#在登录接口配置全局变量)

```
// 用户的详情，用于获取用户id
LogFacade::getInstance()->cacheUser($data['token'], $user['data'] ?? []);
// 用户登录类型，可以是乡村大脑登录，也可以是工作台登录（需要额外新增处理类）
$_SERVER['log_login_type'] = 'xcdn';
```

配置应用编码
------

[](#配置应用编码)

在.env文件中配置：

```
// IRS应用编码
LOG_STANDARD_APP_CODE=A33xxxx
// 地区编码，如果没有配置，则根据用户ip获取
LOG_STANDARD_AREA_CODE=330328

// 开启redis
CACHE_DRIVER=redis
REDIS_HOST=xxx
REDIS_PASSWORD=xxx
REDIS_PORT=6379
REDIS_CACHE_DB=21
REDIS_PREFIX=xxx
```

配置中间件
-----

[](#配置中间件)

`app/Http/Kernel.php`：

```
protected $middleware = [
    \Anchu\LogStandard\Middlewares\LogStandard::class,
];
```

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18546126?v=4)[liurenlin](/maintainers/maxlcoder)[@maxlcoder](https://github.com/maxlcoder)

---

Top Contributors

[![maxlcoder](https://avatars.githubusercontent.com/u/18546126?v=4)](https://github.com/maxlcoder "maxlcoder (1 commits)")

### Embed Badge

![Health badge](/badges/maxlcoder-log-standard/health.svg)

```
[![Health](https://phpackages.com/badges/maxlcoder-log-standard/health.svg)](https://phpackages.com/packages/maxlcoder-log-standard)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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