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

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

xiaoyun/supports
================

common components

v1.1(7y ago)09MITPHPPHP &gt;=5.5

Since Apr 27Pushed 7y agoCompare

[ Source](https://github.com/xiaoyunTeam/supports)[ Packagist](https://packagist.org/packages/xiaoyun/supports)[ RSS](/packages/xiaoyun-supports/feed)WikiDiscussions 1.1 Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

xiaoyun.studio/supports
=======================

[](#xiaoyunstudiosupports)

handle with array/config/log/guzzle etc.

About log
---------

[](#about-log)

### Register

[](#register)

#### Method 1

[](#method-1)

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

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

class APPLICATIONLOG extends Log
{
    /**
     * Make a default log instance.
     *
     * @author XiaoYun
     *
     * @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('XiaoYun.private_number');
        $logger->pushHandler($handler);

        return $logger;
    }
}
```

#### Method 2

[](#method-2)

Or, just init the log service with:

```
use XiaoYun\Supports\Log;

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

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

### Usage

[](#usage)

After registerLog, you can use Log service:

```
use XiaoYun\Supports\Log;

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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2621d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df4475822889424ce1af200062d396868b2a70074b8b5943fda54516ae04271d?d=identicon)[i838847058](/maintainers/i838847058)

---

Top Contributors

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

---

Tags

httparrayconfigGuzzlecollectionsupport

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8161.6M36](/packages/jbzoo-utils)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

926.8M53](/packages/graham-campbell-guzzle-factory)[eljam/guzzle-jwt-middleware

A jwt authentication middleware for guzzle 6

28750.0k3](/packages/eljam-guzzle-jwt-middleware)

PHPackages © 2026

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