|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2018-01-04 (9 months ago) ||Not enough user ratings||Total: 208 ||All time: 8,068 This week: 456|
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.