for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Konfig
*
* Yet another simple configuration loader library.
* @author Xeriab Nabil (aka KodeBurner) <[email protected]>
* @license https://raw.github.com/xeriab/konfig/master/LICENSE MIT
* @link https://xeriab.github.io/projects/konfig
*/
namespace Exen\Konfig;
use Closure;
final class Utils
{
* Includes the given file and returns the results.
* @param string The path to the file
* @return mixed The results of the include
* @since 0.1.0
public static function load($file = null)
return require_once $file;
}
* Takes a value and checks if it's a Closure or not, if it's a Closure it
* will return the result of the closure, if not, it will simply return the
* value.
* @param mixed $var The value to get
* @return mixed
public static function checkValue($var = null)
return ($var instanceof Closure) ? $var() : $var;
* @return string
* @since 0.1.2
public function __toString()
return 'Exen\Konfig\Utils' . PHP_EOL;
#: END OF ./src/Utils.php FILE