This repository has been archived by the owner. It is now read-only.
Clean URL name generator for PHP
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
utf8_to_ascii_db
.gitignore
.travis.yml
README.markdown
composer.json
interface.php
manifest.yml
phpunit.xml.dist
utf8_to_ascii.php

README.markdown

URL-safe text handler Build Status

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.