2017 © Pedro Peláez
 

library prettyurl

Small class to transliterate lots of characters and make a safe and pretty URL.

image

simbiat/prettyurl

Small class to transliterate lots of characters and make a safe and pretty URL.

  • Sunday, July 1, 2018
  • by Simbiat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

(new \PrettyURL\PrettyURL)->pretty(string $string, string $whitespace = '-', bool $urlsafe = true);

Function transliterates lots of characters and makes a safe and pretty URL. This is intended more as a SEO thing, rather than sanitization., (*1)

Includes majority (if not all) of diactrics (accented characters), cyrillic, hiragana, katakana, arabic, chinese characters. They are replaced by Latin characters or combinations that are representing how they are pronounced, officially romanized or the closest neighbours in terms of how a chartacer is drawn. It also allows to replace whitespace characters with a chacarter of your choosing (hyphen as default)., (*2)

If $urlsafe is set to true, some characters will be removed as well, because they can "break" the URL. Some of them are valid for an URI, but they are not good for SEO links., (*3)

The Versions

01/07 2018

dev-master

9999999-dev https://github.com/Simbiat/prettyurl

Small class to transliterate lots of characters and make a safe and pretty URL.

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

url transliteration pretty safe

01/07 2018

1.0.0.1

1.0.0.1 https://github.com/Simbiat/prettyurl

Small class to transliterate lots of characters and make a safe and pretty URL.

  Sources   Download

MIT

The Requires

  • php >=5.0.0

 

url transliteration pretty safe