Mecha CMS

Convert from X to Y.

$to->HTML()

Decode HTML special characters.

$to->JSON()

Convert PHP array/object into JSON.

$to->URL()

Convert private file path into public URL, or decode URL special characters.

To::YAML()

Convert array into YAML string.

$to->anemon()

Convert encoded JSON, PHP object or array into PHP array.

$to->base64()

Encode string to Base64.

$to->camel()

Convert string input into camelCase.

$to->dec()

Convert string into their HTML decimal characters representation.

$to->file()

Sanitize string input into safe file path.

$to->folder()

Sanitize string input into safe folder path.

$to->hex()

Convert string into their HTML hexagonal characters representation.

$to->kebab()

Convert string input into kebab-case.

$to->key()

Convert string input into a valid array key.

$to->pascal()

Convert string input into PascalCase.

$to->path()

Convert public URL into private file path.

$to->query()

Convert PHP array into URL query string.

$to->sentence()

Convert string input into Sentence case..

$to->serial()

Serialize data.

$to->slug()

Convert string input into slug-case.

$to->snake()

Convert string input into snake_case.

$to->snippet()

Convert string input into snippet text.

$to->text()

Convert file name or HTML string into plain text.

$to->title()

Convert file name, HTML string or plain text into Title Case.