Make use of PHP's Transliterator class
lux opened this issue · comments
We could extend character support by making use of PHP's Transliterator class. May even be faster too.
It's faster then regex but we are even faster, when we use a simple "str_replace()" 🙂 -> see e.g. https://github.com/voku/urlify/blob/master/src/voku/helper/URLify.php#L152
I would love a PR for that if you're able to put one together.
You can now also test the Transliterator class, change "ASCII::to_transliterate" in the code and use the strict parameter. :)