|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2018-01-04 (1 year ago) ||Not enough user ratings||Total: 215 This week: 1||All time: 8,100 This week: 338|
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.