for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Gravatalonga\Container;
if (!function_exists('env')) {
function env($name, $default = null)
{
if ($value = getenv($name)) {
return $value;
}
return $default;
if (!function_exists('dd')) {
function dd() {
array_map(function ($x) {
dump($x);
}, func_get_args());
die;
exit
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.
if (!function_exists('app')) {
function app()
return Container::getInstance();
if (!function_exists('path')) {
function path($folder = '')
return rtrim(app()->get('settings')['base_path'] . '/' . $folder, '/');
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.