jeslopcru / simply-slug
Simple implementation for convert a string into a slug
dev-master
2017-04-22 19:04 UTC
Requires
- php: >=5.5
- symfony/yaml: ^3.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpunit/phpunit: ^4.0
This package is not auto-updated.
Last update: 2024-11-13 10:35:39 UTC
README
SimplySlug is a Simple implementation for creating slug based on keyvanakbary/slugifier.
Instalation
To install this package, run the command below and you will get the latest version
composer require jeslopcru/simply-slug
Usage
<?php
$simplySlug = new \SimplySlug();
echo $simplySlug->drools('JúST å fëw wørds'); // just-a-few-words
echo $simplySlug->drools('Hello WikiPeDiA StYle', '_'); // hello_wikipedia_style