app()
Bootstraps the application.
app() : ServiceContainer
Bootstraps the application.
app() : ServiceContainer
Scans a dir for files with specific extensions.
scan(string $path[, mixed $extensions = ['php'] ]) : array<string|int, mixed>
View function is a wrapper for the View class which renders/makes and returns HTML content to the browser.
view(string $view[, array<string|int, mixed> $values = [] ][, string $subfolder = '' ]) : mixed
Response function is a wrapper for Response class and formats and returns content as JSON, XML or any other content type.
response([mixed $data = '' ][, int $code = 200 ][, string $type = AerosLibClassesResponse::JSON ]) : mixed
Makes HTML requests with cURL PHP built-in function, also, grabs values, params, from a specific HTTP method.
request([mixed $opts = '' ][, array<string|int, mixed> $keys = [] ]) : mixed
Redirect function is a wrapper for Redirect class and performs a redirect with arguments.
redirect(string $redirect[, array<string|int, mixed> $arguments = [] ][, string $request_method = 'GET' ]) : void
Dump and die for testing purposes.
dd(string|mixed ...$args) : void
cache() function is a Predis wrapper.
cache() : Cache
Component function is a wrapper for the Component class which renders and returns HTML content to the browser.
component(string $component[, array<string|int, mixed> $data = [] ][, bool $return = false ]) : mixed
If true, the component body will be returned instead of being dumped
Gets an ENV variable if exists, otherwise, if $default is not null, sets the new value.
env(string $key[, string $default = NULL ]) : mixed
Creates a cookie with mixed values (callables are not supported).
setCookieWith(string $key, mixed $value, int|array<string|int, mixed> $params[, string $path = '/' ][, string $domain = '' ][, bool $secure = false ][, bool $httponly = false ]) : bool
Callable type is not supported
Deletes a cookie by $key.
deleteCookie(string $key[, bool $clear = false ]) : bool
Returns the main cookie or a specific one.
cookie([string $key = null ]) : mixed
Sanitizes a value by reference.
sanitizeWith(mixed $vector, array<string|int, mixed> $categories[, string $replacement = '' ]) : mixed
Wrapper for DB conection and all its handlers.
db([string|null $driver = null ]) : Db
sqlite or sqlite:db_alias
Embeds a CSRF token into a hidden input.
csrf() : string
Returns the main app worker.
worker() : Worker
Returns the global encryptor.
encryptor() : Encryptor
Returns the global session object.
session() : Session
Returns values or objects from config files.
config(string $from[, mixed $default = null ]) : mixed
Appends a message into a log file.
logger(mixed $message, string $logFile[, bool $createFile = false ]) : bool
Path and filename.
Flag to create the log file if it does not exist.
Returns the queue instance.
queue() : Queue
Returns an instance of Cron.
cron() : Cron
This is a wrapper for Scheduler class.
Validates if the current user is internal.
isInternal() : bool
Searches for a string within another string based on a list and returns true if one of the items from the list was found.
str_find(string $haystack, array<string|int, mixed> $needles) : bool
Pluralizes a word.
pluralize(string $word) : string
Singularizes a word.
singularize(string $word) : string