urlify
urlify copied to clipboard
A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.
Upgrading from 1.2.3 to 1.2.4 broke our test suite, in particular some characters are transliterated differently, breaking assertions and semver. E.g. we test that `това е текст на бълрагски за...
echo URLify::slug('中文简体'); result zhong-wen-jian-ti how to get back slug in chines i means how can reverse slug translate
Hi, Why is $underscoreToSpace removed from the filter ? It was pretty handy to make underscores hypens of you wanted, or spaces ofcourse. I hope there is a good reason...
We could extend character support by making use of PHP's [Transliterator](http://php.net/Transliterator) class. May even be faster too.
It will fix the issue when trimming a text: From : -test- to test With this option the "-" won't be removed. By default it works as usual.
Had to add the following chars for [our transliteration test](https://gist.github.com/motin/a65e6c1cc303e46900d10894bf2da87f) to pass: ``` URLify::add_chars( array( 'Ÿ' => 'Y', 'µ' => 'u', '¥' => 'Y', 'Ĉ' => 'C', 'ĉ' => 'c',...
When generating a slug that contains `/` and `,` , it replaces these characters with nothing, when it should correctly replace them with a `separator`. - **Test string:** Bomba Submersa...