midgard/midgardmvc-helper-urlize

URL-safe text converter

Installs: 8 909

Dependents: 1

Stars: 10

Watchers: 3

Open Issues: 2

Language: PHP

1.1.1 2013-01-07 10:56 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.