PHP code example of bingogg14 / slugify

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

    

bingogg14 / slugify example snippets


use Bingogg\Slugify\Slugify;

$slugify = new Slugify();
echo $slugify->slugify("Hello World!"); // hello-world

echo $slugify->slugify("Hello World!", "_"); // hello_world

'providers' => array(
    "Bingogg\Slugify\Bridge\Laravel\SlugifyServiceProvider",
)

'aliases' => array(
    "Slugify" => "Bingogg\Slugify\Bridge\Laravel\SlugifyFacade",
)

$url = Slugify::slugify("welcome to the homepage");