|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not enough user ratings||Total: 227 ||All time: 8,120 This week: 178|
This class can create a slug text for a URL from another text.
It takes a given text string and processes it to generate a slug text only with plain ASCII text characters that can be used in URLs that are readable and friendly for the users.
The class replaces all spaces by dashes, and transliterate letters with accents and cedillas to the corresponding characters in ASCII.
create url slug from a text and replace special character
Direct install from composer
composer require afshinpersian/phpslugger
Include it via Composer Autoloader
require __DIR__ . '/vendor/autoload.php';
$phpSlugger = new PhpSlugger();
echo $phpSlugger->slugit('? ? $ Þ ? I am A web Developer'); // delta-euro-dollor-l-i-am-a-web-developer
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.