PHP Classes

File: src/Helpers.php

Recommend this page to a friend!
  Classes of Moamen Eltouny   PHP Slugify   src/Helpers.php   Download  
File: src/Helpers.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Slugify
Create a slug text from a given text string
Author: By
Last change:
Date: 2 years ago
Size: 192 bytes
 

Contents

Class file image Download
<?php

use Pharaonic\Slugify\Slugify;

/**
 * Get Slug from String
 *
 * @param string $string
 * @return string
 */
function slug(string $string = null)
{
    return
Slugify::get($string);
}