magroski/permalink

A library to create url friendly slugs

v1.0.0 2019-05-22 23:08 UTC

This package is auto-updated.

Last update: 2024-12-23 11:34:17 UTC


README

Latest Stable Version Minimum PHP Version CircleCI GitHub license

A library to create url friendly slugs

Usage examples

$text = 'my post title';
$permalink = Permalink::create($text); # my-post-title

$text = 'created';
$prefix = 'i-';
$suffix = '-this'
$permalink = Permalink::create($text, $prefix, $suffix); # i-created-this