PHPackages                             mzsongyan/supports - 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. mzsongyan/supports

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

mzsongyan/supports
==================

common components

0175PHP

Since Jan 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/SyanH/supports)[ Packagist](https://packagist.org/packages/mzsongyan/supports)[ RSS](/packages/mzsongyan-supports/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Supports
========

[](#supports)

[![Linter Status](https://github.com/yansongda/supports/workflows/Linter/badge.svg)](https://github.com/yansongda/supports/actions)[![Tester Status](https://github.com/yansongda/supports/workflows/Tester/badge.svg)](https://github.com/yansongda/supports/actions)[![Latest Stable Version](https://camo.githubusercontent.com/6938d3dd25dbf8db11e62e875105cd148e900928699683beea984a8ef0b2fc6c/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f737570706f7274732f762f737461626c65)](https://packagist.org/packages/yansongda/supports)[![Total Downloads](https://camo.githubusercontent.com/a896ae40d07a5934971fe2aebc7afb0ee596b13d07954cf572336aedcf7e81bb/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f737570706f7274732f646f776e6c6f616473)](https://packagist.org/packages/yansongda/supports)[![Latest Unstable Version](https://camo.githubusercontent.com/660d245927c00d1844fcb963e382180e32eb72f6453caf798c0ecc6a20ac32c7/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f737570706f7274732f762f756e737461626c65)](https://packagist.org/packages/yansongda/supports)[![License](https://camo.githubusercontent.com/04f7e6c8b876d181c042ec1d700c2ce5d460864ee2da02c9f59ae5d68c3ddb33/68747470733a2f2f706f7365722e707567782e6f72672f79616e736f6e6764612f737570706f7274732f6c6963656e7365)](https://packagist.org/packages/yansongda/supports)

handle with array/config/log/guzzle etc.

About log
---------

[](#about-log)

### Register

[](#register)

#### Method 1

[](#method-1)

A application logger can extends `Yansongda\Supports\Log` and modify `createLogger` method, the method must return instance of `Monolog\Logger`.

```
use Yansongda\Supports\Log;
use Monolog\Logger;

class APPLICATIONLOG extends Log
{
    /**
     * Make a default log instance.
     *
     * @author yansongda
     *
     * @return Logger
     */
    public static function createLogger()
    {
        $handler = new StreamHandler('./log.log');
        $handler->setFormatter(new LineFormatter("%datetime% > %level_name% > %message% %context% %extra%\n\n"));

        $logger = new Logger('yansongda.private_number');
        $logger->pushHandler($handler);

        return $logger;
    }
}
```

#### Method 2

[](#method-2)

Or, just init the log service with:

```
use Yansongda\Supports\Log;

protected function registerLog()
{
    $logger = Log::createLogger($file, $identify, $level);

    Log::setLogger($logger);
}
```

### Usage

[](#usage)

After registerLog, you can use Log service:

```
use Yansongda\Supports\Log;

Log::debug('test', ['test log']);
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

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://www.gravatar.com/avatar/145747c85b7bd3c85bf104ebe7525619b48d50654e9e9404553048dabf5a6833?d=identicon)[SyanH](/maintainers/SyanH)

---

Top Contributors

[![SyanH](https://avatars.githubusercontent.com/u/6157072?v=4)](https://github.com/SyanH "SyanH (2 commits)")

### Embed Badge

![Health badge](/badges/mzsongyan-supports/health.svg)

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

###  Alternatives

[fntneves/laravel-transactional-events

Transaction-aware Event Dispatcher for Laravel

3202.6M2](/packages/fntneves-laravel-transactional-events)[ipinfo/ipinfo

The official PHP library for IPinfo, the most reliable, accurate, and in-depth source of IP address data available anywhere. We process terabytes of data to produce our custom IP geolocation, company, carrier and IP type data sets. Visit our developer docs at https://ipinfo.io/developers.

2891.2M11](/packages/ipinfo-ipinfo)[typo3/cms-recordlist

TYPO3 CMS Recordlist - Lists database records in the TYPO3 backend module (Web&gt;List).

178.0M48](/packages/typo3-cms-recordlist)[glhd/laravel-timezone-mapper

Timezone mapper for Laravel

45284.4k](/packages/glhd-laravel-timezone-mapper)[neos/eel

The Embedded Expression Language (Eel) is a building block for creating Domain Specific Languages

122.0M27](/packages/neos-eel)[kohkimakimoto/background-process

A minimum library to run background processes asynchronously.

361.4k](/packages/kohkimakimoto-background-process)

PHPackages © 2026

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