Colymba\RESTfulAPI\Inflector::slug
Returns a string with all spaces converted to underscores (by default), accented characters converted to non-accented characters, and non word characters removed.
Signature
public function slug(string
$string,
[string
$replacement = '_'] )
Parameters
$string
— string- the string you want to slug
$replacement
— string- will replace keys in map
Returns
- string