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

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

youloge/ini
===========

Webman plugin youloge/ini

v1.3.0(1y ago)1322↓100%1MITPHP

Since Feb 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/youfeed/webman.ini)[ Packagist](https://packagist.org/packages/youloge/ini)[ RSS](/packages/youloge-ini/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)DependenciesVersions (10)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

32

—

LowBetter than 71% of packages

Maintenance47

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~54 days

Recently: every ~95 days

Total

8

Last Release

429d ago

Major Versions

v0.0.1 → v1.0.02024-02-19

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[naxeem/thaana-transliterator

Thaana transliterator

202.5k](/packages/naxeem-thaana-transliterator)

PHPackages © 2026

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