1. Go to this page and download the library: Download easybook/slugger library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
easybook / slugger example snippets
use Easybook\Slugger;
$slugger = new Slugger();
$slug = $slugger->slugify('Lorem Ipsum'); // slug = lorem-ipsum
$slugger = (new \Easybook\Slugger())->slugify('Lorem Ipsum');
use Easybook\Slugger;
$slugger = new Slugger();
$slug = $slugger->uniqueSlugify('Lorem Ipsum'); // slug = lorem-ipsum-a2b342f