midgard / midgardmvc-helper-urlize
URL-safe text converter
Installs: 21 775
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 0
Open Issues: 2
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2020-01-24 14:51:04 UTC
README
This library can be used for generating URL-safe names for entities from their titles.
Examples:
<?php
$string = 'älä lyö ääliö ööliä läikkyy';
$url = midgardmvc_helper_urlize::string($string);
var_dump($url); // ala_lyo_aalio_oolia_laikkyy
$string = 'Контакты';
$url = midgardmvc_helper_urlize::string($string);
var_dump($url); // kontakty
The UTF-8 handling code comes from the PHP UTF-8 Project.