2017 © Pedro Peláez
 

library phini

ini file utility

image

m3y/phini

ini file utility

  • Thursday, November 13, 2014
  • by m3y
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

phini

Build Status Coverage Status Latest Stable Version License, (*1)

概要

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

インストール

以下の内容を含んだcomposer.jsonを作成し、, (*3)

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

composerでインストール, (*4)

$ composer install

利用方法

サンプルiniファイル, (*5)

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

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

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

セクションを考慮する場合, (*6)

<?php

require 'vendor/autoload.php';

$ini = new M3y\Phini\Phini('/path/to/inifile.ini', true);

print $ini->section_two->key21; // value21
print $ini->key3[0]; // value31

セクションを考慮しない場合, (*7)

<?php

require 'vendor/autoload.php';

$ini = new M3y\Phini\Phini('/path/to/inifile.ini');
print $ini->key11; // value11
print $ini->key3[0]; // value31

テスト実行

$ phpunit

The Versions

13/11 2014

dev-master

9999999-dev https://github.com/m3y/phini

ini file utility

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Masaya Ozawa

13/11 2014

0.2

0.2.0.0 https://github.com/m3y/phini

ini file utility

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Masaya Ozawa

13/11 2014

0.1

0.1.0.0 https://github.com/m3y/phini

ini file utility

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Masaya Ozawa