Installer Class

Create object

Create a object of the Installer class:

$installer = new Installer(Registry $registry, Request $request, Language $language, Config $config);

Init

Init the class:

$installer->init(string $directory) : void;

Raw create

Create from sql database/{db-type}/create files:

$installer->rawCreate() : void;

Raw drop

Drop from sql database/{db-type}/drop files:

$installer->rawDrop() : void;

Insert data

Insert the data:

$installer->insertData(array $optionArray) : void;
Edit on GitHub

Language Class

Get instance

Get the instance of the Language class:

$language = Language::getInstance();

Clear instance

Clear the instance of the Language class:

$language->clearInstance() : void;

Init

Init the class:

$language->init(string $language) : void;

Get

Get the value from language:

$language->get(string $key) : ?string;

Get array

Get the array from language:

$language->getArray() : array;

Set

Set the value to language:

$language->set(string $key, string|array|null $value) : void;

Load

Load from language path:

$language->load(string|array $path) : void;
Edit on GitHub

Reader Class

Create object

Utilize the constructor of the Reader class:

$reader = new Reader();

Init

Init the class:

$reader->init(array $optionArray) : self

Get object

Get the object:

$reader->getObject() : ?object

Get array

Get the array:

$reader->getArray() : ?array

Get json

Get the json:

$reader->getJSON() : string

Get xml

Get the xml:

$reader->getXML() : string

Load

load the content from url:

$reader->load() : self

Load json

load the json from url:

$reader->loadJSON() : self

Load xml

load the xml from url:

$reader->loadXML() : self
Edit on GitHub

Registry Class

Get instance

Get the instance of the Registry class:

$registry = Registry::getInstance();

Clear instance

Clear the instance of the Registry class:

$registry->clearInstance() : void;

Init

Init the class:

$registry->init(array $registryArray) : void;

Get

Get the value from registry:

$registry->get(string $key) : ?string;

Get array

Get the array from registry:

$registry->getArray() : array;

Set

Set the value to registry:

$registry->get(string $key, string $value) : void;
Edit on GitHub

Request Class

Get instance

Get the instance of the Request class:

$request = Request::getInstance();

Clear instance

Clear the instance of the Request class:

$request->clearInstance() : void;

Init

Init the class:

$request->init() : void;

Globals

Get the value from globals:

$request->get(string $key) : string|array|null;

Get the array from globals:

$request->getArray() : array;

Set the value to globals:

$request->set(string $key, string|array|null $value) : void;

Server

Get the value from server:

$request->getServer(string $key) : string|array|null;

Set the value to server:

$request->setServer(string $key, string|array|null $value) : void;

Query

Get the value from query:

$request->getQuery(string $key) : string|array|null;

Set the value to query:

$request->setQuery(string $key, string|array|null $value) : void;

Post

Get the value from post:

$request->getPost(string $key) : string|array|null;

Set the value to post:

$request->setPost(string $key, string|array|null $value) : void;

Files

Get the value from files:

$request->getFiles(string $key) : string|array|null;

Set the value to files:

$request->setFiles(string $key, string|array|null $value) : void;

Session

Get the value from session:

$request->getSession(string $key) : string|array|null;

Set the value to session:

$request->setSession(string $key, string|array|null $value) : void;

Refresh the session:

$request->refreshSession() : void;

Cookie

Get the value from cookie:

$request->getCookie(string $key) : string|array|null;

Set the value to cookie:

$request->setCookie(string $key, string|array|null $value) : void;

Refresh the cookie:

$request->refreshCookie() : void;
Edit on GitHub

Server Bundle

Directory

Get the directory:

$directory = new Server\Directory(Request $request);
$directory->getOutput() : string;

File

Get the file:

$file = new Server\File(Request $request);
$file->getOutput() : string;

Host

Get the host:

$host = new Server\Host(Request $request);
$host->getOutput() : string;

Protocol

Get the protocol:

$protocol = new Server\Protocol(Request $request);
$protocol->getOutput() : string;

Root

Get the root:

$root = new Server\Root(Request $request);
$root->getOutput() : string;

Token

Get the token:

$token = new Server\Token(Request $request);
$token->getOutput() : string;
Edit on GitHub

Validator Bundle

Access

Validate the access:

$validator = new Validator\Access();
$validator->validate(string $access, string $groups) : bool;

Alias

Validate the alias:

$validator = new Validator\Alias();
$validator->validate(string $alias, int $mode) : bool;

Captcha

Validate the captcha:

$validator = new Validator\Captcha();
$validator->validate(string $task, string $hash) : bool;

DNS

Validate the DNS:

$validator = new Validator\Dns();
$validator->validate(string $host, string $type) : bool;

Email

Validate the email:

$validator = new Validator\Email();
$validator->validate(string $email, bool $dns) : bool;

Login

Validate the login:

$validator = new Validator\Login();
$validator->validate(string $login) : bool;

Password

Validate the password:

$validator = new Validator\Password();
$validator->validate(string $password, string $hash) : bool;

Search

Validate the search:

$validator = new Validator\Search();
$validator->validate(string $search, string $placeholder) : bool;

URL

Validate the URL:

$validator = new Validator\Url();
$validator->validate(string $url, bool $dns) : bool;
Edit on GitHub