PHP code example of abeliani / slug-helper
1. Go to this page and download the library: Download abeliani/slug-helper 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/ */
abeliani / slug-helper example snippets
$helper = new SlugHelper;
print $helper(' `Test, a very good text !='); // test-a-very-good-text
$helper = new SlugHelper(options: [FilterWords::class => ['a', 'an'], ReplaceSpaces::class => '+']);
print $helper('A book with an apple'); // book+with+apple