PHPackages                             ifu/helper - 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. ifu/helper

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

ifu/helper
==========

ifu helper

2.0(5y ago)026MITHTMLPHP &gt;=5.3

Since Feb 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Cindy-lmz/ifu-log)[ Packagist](https://packagist.org/packages/ifu/helper)[ Docs](https://github.com/Cindy-lmz/ifu-log.git)[ RSS](/packages/ifu-helper/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (9)DependenciesVersions (10)Used By (0)

ifu-log
=======

[](#ifu-log)

项目简介: 阿里云日志
===========

[](#项目简介-阿里云日志)

使用案例
====

[](#使用案例)

\##配置文件使用:

ThinkPHP 6 阿里云日志服务日志驱动

```

#  配置
config/log.php
```php
// 默认日志记录通道
'default'      => 'aliyunsls',
// 日志通道列表
'channels'     => [
    'aliyunsls' => [
        // 日志记录方式
        //阿里云日志  2021/03/11 cindy
        'type'        => '\ifu\helper\Log',
        // 日志保存目录
        'path'           => '',
        // 单文件日志写入
        'single'         => false,
        // 指定日志类型
        'level'=>['notice', 'warning', 'error', 'sql', 'critical', 'alert', 'emergency'],
        // 独立日志级别
        'apart_level' => ['error', 'sql', 'critical', 'alert', 'emergency'],
        // 每个文件大小 ( 10兆 )
        // 'file_size'      => 1024 * 1024 * 10,
        // 日志日期格式
        'time_format'    => 'Y-m-d H:i:s',
        // 最大日志文件数量
        // 'max_files'      => 100,
        // 使用JSON格式记录
        'json'           => true,
        // 日志处理
        'processor'      => null,
        // 关闭通道日志写入
        'close'          => false,
        // 日志输出格式化
        'format'         => '[%s][%s] %s',
        // 是否实时写入
        'realtime_write' => false,
        // 阿里云 endpoint
        'aliyun_log_endpoint' => '',
        // 阿里云 AccessKey ID
        'aliyun_log_access_key_id' => '',
        // 阿里云 AccessKey Secret
        'aliyun_log_access_key_secret' =>'',
        // 项目名称
        'aliyun_log_project' => '',
        // logstore 名称
        'aliyun_log_logstore' => '',
        // source 标识
        'aliyun_log_source' => '',
        // topic 标识
        'aliyun_log_topic' => '',
        // 日志处理
        'aliyun_log_processor' => null,
        // 使用JSON格式记录
        'aliyun_log_json' => true,
    ],
]

# 单独调用

引入: use ifu\helper\Log;

$this->log = new Log;
$apidata['level']           =   2;
/**
* $apidata 数组key和value都可以自定义;
**/
$this->log->apisave($apidata,'自定义标识码');

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

9

Last Release

1911d ago

Major Versions

1.7 → 2.02021-02-22

PHP version history (2 changes)1.0PHP &gt;=7.3

1.1PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/995f6d49a2ac971dcbf03bc90f9158540ed485799e687fe4ed727d22cd11ade2?d=identicon)[Cindy-lmz](/maintainers/Cindy-lmz)

---

Top Contributors

[![Cindy-lmz](https://avatars.githubusercontent.com/u/73512807?v=4)](https://github.com/Cindy-lmz "Cindy-lmz (1 commits)")

---

Tags

ifu

### Embed Badge

![Health badge](/badges/ifu-helper/health.svg)

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

###  Alternatives

[kenjis/ci3-to-4-upgrade-helper

Help upgrade from CodeIgniter3 to CodeIgniter4

695.9k](/packages/kenjis-ci3-to-4-upgrade-helper)[anerg2046/helper

some helper libaray function

2313.9k2](/packages/anerg2046-helper)[shrink0r/monatic

Fiddling with the monad concept in php

245.3k2](/packages/shrink0r-monatic)[purplespider/mypswd-tweaks

Custom SilverStripe tweaks to keep things tidy.

181.4k](/packages/purplespider-mypswd-tweaks)[innmind/git

Git abstraction

141.4k1](/packages/innmind-git)[dvizh/yii2-field

yii2-field add fields to your model

111.7k](/packages/dvizh-yii2-field)

PHPackages © 2026

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