PHPackages                             colaphp/utils - 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. colaphp/utils

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

colaphp/utils
=============

2.0.0(1w ago)0621MITPHPPHP &gt;=5.6

Since Jun 21Pushed 1w ago1 watchersCompare

[ Source](https://github.com/nydia87/colaphp-utils)[ Packagist](https://packagist.org/packages/colaphp/utils)[ RSS](/packages/colaphp-utils/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (12)Used By (1)

colaphp-util
============

[](#colaphp-util)

概述
--

[](#概述)

工具包

使用
--

[](#使用)

### 1、配置

[](#1配置)

```
public function load(){} //加载文件
public function set(){} //设置
public function get(){} //获取
public function remove(){} //移除
function config() //助手函数
```

### 2、Debug调试

[](#2debug调试)

```
public static dump() //友好的变量输出.
function dump() //助手函数
```

### 3、Env环境变量、支持加载ini、env文件

[](#3env环境变量支持加载inienv文件)

```
public static load() //加载文件.
public static set() //设置.
public static get() //获取.
function env() //助手函数
```

```
$config = [
    'time_format' => 'c',
    //单独记录true | string
    'single'      => false,
    'file_size'   => 2097152,
    'path'        => __DIR__,
    //独立日志的类型warning|error
    'apart_level' => [],
    'json'        => false,
];
$Log = new \Colaphp\Utils\Log();
$Log->init($config);
$Log->notice('hello');
$Log->save();
```

更新说明
----

[](#更新说明)

版本更新日期说明v2.0.02026.06.21重构v1.0.02021.07.30基本功能

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance98

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Every ~178 days

Recently: every ~442 days

Total

11

Last Release

12d ago

Major Versions

1.2.2 → 2.0.02026-06-21

PHP version history (2 changes)1.0.0PHP &gt;=5.6.40

1.1.2PHP &gt;=5.6

### Community

Maintainers

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

---

Top Contributors

[![nydia87](https://avatars.githubusercontent.com/u/11849800?v=4)](https://github.com/nydia87 "nydia87 (14 commits)")

---

Tags

phputilscolaphp

### Embed Badge

![Health badge](/badges/colaphp-utils/health.svg)

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

PHPackages © 2026

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