PHP code example of geosub / yii-slugifier

1. Go to this page and download the library: Download geosub/yii-slugifier 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/ */

    

geosub / yii-slugifier example snippets


	'components' => [
		'slug' => [
            'class' => 'path.to.ESligifier',
		],
	],

	'components' => [
		'slug' => [
            'class' => 'path.to.ESligifier',
			'rules'     => "Any-Latin; NFD; [\\u0100-\\u7fff] remove; [:Nonspacing Mark:] Remove; NFC; [:Punctuation:] Remove; Lower();",
			'delimiter' => "-",
		],
	],

echo Yii::app()->slug->getSlug("Прове р каСл агифа^^ера");