bantu/ini-get-wrapper

Convenience wrapper around ini_get()

v1.0.1 2014-09-15 13:12 UTC

This package is not auto-updated.

Last update: 2024-11-19 01:28:23 UTC


README

Travis Build Status Scrutinizer Build Status Code Coverage Scrutinizer Code Quality

Usage

require __DIR__ . '/vendor/autoload.php';
$ini = new bantu\IniGetWrapper\IniGetWrapper;
var_dump(
  $ini->getString('does-not-exist'),
  $ini->getString('default_mimetype'),
  $ini->getBool('display_errors'),
  $ini->getNumeric('precision'),
  $ini->getBytes('memory_limit')
);
NULL
string(9) "text/html"
bool(false)
int(14)
int(134217728)