slug is a free function to create beautiful URL for blog or website.
require_once ('/path/to/slug.php');
Load the library
$slug = new Slug();
Create URL
$title = 'slug is a free function to create beautiful URL.';
$url = $slug->create($title);
echo $url;
Result
slug-is-a-free-function-to-create-beautiful-url
slug is licensed under the MIT license. See License File for more information.