1. Go to this page and download the library: Download sunrise/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/ */
sunrise / slugger example snippets
use Sunrise\Slugger\Slugger;
$slugger = new Slugger();
// syesh-yeshche-etikh-myagkikh-frantsuzskikh-bulok-da-vypey-chayu
$slugger->slugify('Съешь ещё этих мягких французских булок, да выпей чаю');
use Sunrise\Slugger\Slugger;
$slugger = new Slugger('de-ASCII');
// falsches-ueben-von-xylophonmusik-quaelt-jeden-groesseren-zwerg
$slugger->slugify('Falsches Üben von Xylophonmusik quält jeden größeren Zwerg');
$slugger = new Slugger(null, [
'.' => ' dot ',
'@' => ' at ',
]);
// [email protected]
$slugger->slugify('admin-at-acme-dot-com');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.