File "Slug.php"

Full Path: /home/warrior1/public_html/languages/wp-content/plugins/file-manager/vendor/bitapps/wp-kit/src/Helpers/Slug.php
File size: 218 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace BitApps\WPKit\Helpers;

class Slug
{
    public static function generate($text)
    {
        $text = preg_replace('/[^a-zA-Z0-9]+/', '-', $text);

        return strtolower(trim($text, '-'));
    }
}