2017 © Pedro Peláez
 

library config

simple config class for php

image

theykk/config

simple config class for php

  • Friday, June 1, 2018
  • by TheYkk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Php basit ayar class'i

Kullanim

Yapılandırma çok basit ve kullanımı kolay olacak şekilde tasarlanmıştır. Kullanim methodlari set , get , load , has ., (*1)

Dosya Tanimlama

Config classi statik olarak load() fonksiyonu ile yuklenebilir , ya da direk Config classi olusturulabilir., (*2)

use TheYkk\Config;

// Tekli Dosya Yukleme
$conf = Config::load('config.php');
$conf = new Config('config.php');

// Coklu dosya yukleme
$conf = new Config(['config.php', 'config.php']);

Deger alma

get() methodu kullanarak alma:, (*3)

// Key kullanarak deger alma
$db_user = $conf->get('database.user');

Deger atama

set() ile yapilabilir :, (*4)

$conf = Config::load('config.php');

$conf->set('genel.durum','oldu');

The Versions

01/06 2018

dev-master

9999999-dev https://github.com/TheYkk/config

simple config class for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php config class simple

01/06 2018

1

1.0.0.0 https://github.com/TheYkk/config

simple config class for php

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

php config class simple