Convenience wrapper around PHP's ini_get() function.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.gitignore
.scrutinizer.yml
.travis.yml
LICENSE
README.md
composer.json
phpunit.xml.dist

README.md

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)