API Documentation
Table of Contents
Namespaces
Constants
- APP_ENV = 'development'
 - Define app environment.
 - APP_ENV = 'production'
 - MODULE_PATH = \ROOT_PATH . \DIRECTORY_SEPARATOR . 'Modules'
 - Modules path.
 - PUBLIC_PATH = __DIR__
 - Public (root web) path.
 - ROOT_PATH = \dirname(__DIR__)
 - Framework root path.
 - STORAGE_PATH = \ROOT_PATH . \DIRECTORY_SEPARATOR . 'storage'
 - Storage path.
 
Functions
- str_contains() : bool
 - Performs a case-sensitive check indicating if needle is contained in haystack.
 
Constants
APP_ENV
Define app environment.
    public
        mixed
    APP_ENV
    = 'development'
        Value can be 'production', 'development'. The config value will be auto-detect by order if the files in these environments were not found.
APP_ENV
    public
        mixed
    APP_ENV
    = 'production'
    
    
    
    
MODULE_PATH
Modules path.
    public
        mixed
    MODULE_PATH
    = \ROOT_PATH . \DIRECTORY_SEPARATOR . 'Modules'
        The full path to modules folder.
By default it is ROOT_PATH . '/Modules'.
PUBLIC_PATH
Public (root web) path.
    public
        mixed
    PUBLIC_PATH
    = __DIR__
        The full path to public folder. By default it is the folder that contain this index.php file.
ROOT_PATH
Framework root path.
    public
        mixed
    ROOT_PATH
    = \dirname(__DIR__)
        The full path to the framework's root path where contains "config", "Modules", "storage", "System" folders.
STORAGE_PATH
Storage path.
    public
        mixed
    STORAGE_PATH
    = \ROOT_PATH . \DIRECTORY_SEPARATOR . 'storage'
        The full path to storage folder. This folder contains logs, cache.
By default it is ROOT_PATH . '/storage'.
Functions
str_contains()
Performs a case-sensitive check indicating if needle is contained in haystack.
    
                    str_contains(string $haystack, string $needle) : bool
    
        Parameters
- $haystack : string
 - 
                    
The string to search in.
 - $needle : string
 - 
                    
The substring to search for in the haystack.
 
Tags
Return values
bool —Returns true if needle is in haystack, false otherwise.