midgard/midgardmvc-helper-urlize

This package is abandoned and no longer maintained. No replacement package was suggested.

URL-safe text converter

1.1.1 2013-01-07 10:56 UTC

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.