PHPackages                             zhengzhipeng/ini - 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. zhengzhipeng/ini

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

zhengzhipeng/ini
================

Webman plugin youloge/ini

v1.0.2(1y ago)049MITPHP

Since Mar 6Pushed 1y agoCompare

[ Source](https://github.com/Destiny66666/webman.ini)[ Packagist](https://packagist.org/packages/zhengzhipeng/ini)[ RSS](/packages/zhengzhipeng-ini/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Youloge.ini Webman 配置文件读取插件
===========================

[](#youlogeini-webman-配置文件读取插件)

> 其实代码只有几行，但是如果你写在`app/functions.php`配置文件无法使用，如果你写在`support/helpers.php`里面是有效的但是你项目`composer update`会被重置，建议老大给这个函数变成内置

> `composer require youloge/ini`

#### 使用

[](#使用)

- 根目录增加一个 `.env`配置文件
- 以下保留字不得用作 env文件的键：null、yes、no、true、false、on、off、none。此外，密钥中不得使用以下保留字符：{}|&amp;~!()^"。

```
[MYSQL]
HOST=127.0.0.1
...
[REDIS]
HOST=127.0.0.1
...

```

- 优化支持
- `ini(null)`返回全部配置
- `ini('MYSQL','默认值')` 返回一级配置\[数组\]
- `ini('MYSQL.HOST')` 返回三级配置\[字符串\]

> 在`config/database.php` HOST=&gt;`ini('MYSQL.HOST','127.0.0.1')`; // 读取配置文件 如果未找到则返回 `127.0.0.1`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance42

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~1 days

Total

3

Last Release

483d ago

### Community

Maintainers

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

---

Top Contributors

[![youfeed](https://avatars.githubusercontent.com/u/22223510?v=4)](https://github.com/youfeed "youfeed (3 commits)")[![Destiny66666](https://avatars.githubusercontent.com/u/112143853?v=4)](https://github.com/Destiny66666 "Destiny66666 (2 commits)")[![AiMuC](https://avatars.githubusercontent.com/u/31570354?v=4)](https://github.com/AiMuC "AiMuC (1 commits)")

### Embed Badge

![Health badge](/badges/zhengzhipeng-ini/health.svg)

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

PHPackages © 2026

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