PHPackages                             m3y/phini - 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. m3y/phini

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

m3y/phini
=========

ini file utility

0.2(11y ago)020MITPHPPHP &gt;=5.3.3

Since Nov 13Pushed 11y ago1 watchersCompare

[ Source](https://github.com/m3y/phini)[ Packagist](https://packagist.org/packages/m3y/phini)[ Docs](https://github.com/m3y/phini)[ RSS](/packages/m3y-phini/feed)WikiDiscussions master Synced 1mo ago

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

phini
=====

[](#phini)

[![Build Status](https://camo.githubusercontent.com/d5493df17e22ae4e9f79a4a82227cf3f9f103475a572a311dbf9db0eac7ff5ec/68747470733a2f2f7472617669732d63692e6f72672f6d33792f7068696e692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/m3y/phini)[![Coverage Status](https://camo.githubusercontent.com/2f01d8133dd2812bdcaf91c5e78f60db80aa66791b22eeb9b5f0f9e7e229a862/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d33792f7068696e692f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/m3y/phini?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/2e995016824c26fbd1de37b860825cf9f279075f93f4c406f7420c6d2fdaf1d6/68747470733a2f2f706f7365722e707567782e6f72672f6d33792f7068696e692f762f737461626c652e737667)](https://packagist.org/packages/m3y/phini)[![License](https://camo.githubusercontent.com/6e5baf8f3a23107de15970a1da8083e3c2b51834d9893b593a63ff65b0889027/68747470733a2f2f706f7365722e707567782e6f72672f6d33792f7068696e692f6c6963656e73652e737667)](https://packagist.org/packages/m3y/phini)

概要
--

[](#概要)

phiniは、ini設定ファイルの値をアプリケーションから利用しやすくするためのユーティリティクラスです。

インストール
------

[](#インストール)

以下の内容を含んだcomposer.jsonを作成し、

```
{
  "require": {
    "m3y/phini": "0.2"
  }
}
```

composerでインストール

```
$ composer install

```

利用方法
----

[](#利用方法)

サンプルiniファイル

```
key3[] = value31
key3[] = value32
key3[] = value33

[section_one]
key11 = value11
key12 = value12
key13 = value13

[section_two]
key21 = value21
key22 = value22
key23 = value23
```

セクションを考慮する場合

```
