░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/mandariconstructionsupplies.com/api/helpers
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: slugify.php
<?php // helpers/slugify.php function slugify(string $text, string $divider = '-'): string { // Replace non-alphanumeric characters with divider $text = preg_replace("~[^\\pL\\d]+" . $divider . "~u", $divider, $text); // Transliterate non-latin characters to latin $text = iconv("utf-8", "us-ascii//TRANSLIT", $text); // Remove unwanted characters $text = preg_replace("~[^\\w" . $divider . "]+" . $divider . "~", "", $text); // Trim and lowercase $text = trim($text, $divider); $text = strtolower($text); if (empty($text)) { return ""; } return $text; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 response.php
PHP
651 B
2026-07-02 10:29
EDIT
📄 slugify.php
PHP
615 B
2026-07-02 10:29
EDIT
📄 validate.php
PHP
1.6 KB
2026-07-02 10:29
EDIT