# URLify for PHP A PHP port of [URLify.js](https://github.com/django/django/blob/master/django/contrib/admin/static/admin/js/urlify.js) from the Django project. Handles symbols from Latin languages as well as Arabic, Azerbaijani, Czech, German, Greek, Kazakh, Latvian, Lithuanian, Persian, Polish, Romanian, Bulgarian, Russian, Serbian, Turkish, Ukrainian and Vietnamese. Symbols it cannot transliterate it will simply omit. ## Usage: To generate slugs for URLs: ```php ``` To generate slugs for file names: ```php ``` To simply transliterate characters: ```php ``` To extend the character list: ```php '?', '®' => '(r)', '¼' => '1/4', '½' => '1/2', '¾' => '3/4', '¶' => 'P' )); echo URLify::downcode ('¿ ® ¼ ¼ ¾ ¶'); // "? (r) 1/2 1/2 3/4 P" ?> ``` To extend the list of words to remove: ```php ``` To prioritize a certain language map: ```php ``` Please note that the "ü" is transliterated to "ue" in the first case, whereas it results in a simple "u" in the latter.