PHP Classes

File: supports/helpers.php

Recommend this page to a friend!
  Classes of Nahid Bin Azhar   Framework X Starter   supports/helpers.php   Download  
File: supports/helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Framework X Starter
Implements MVC-based asynchronous applications
Author: By
Last change:
Date: 1 year ago
Size: 322 bytes
 

Contents

Class file image Download
<?php


if (!function_exists('base_path')) {
    function
base_path($path = '')
    {
        return
__DIR__ . '/../' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
    }
}

if (!
function_exists('env')) {
    function
env(string $name, mixed $default = null): mixed
   
{
        return
$_ENV[$name] ?? $default;
    }
}