PHP Classes


Recommend this page to a friend!
  Classes of Moamen Eltouny  >  PHP Slugify  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Slugify
Create a slug text from a given text string
Author: By
Last change:
Date: 1 year ago
Size: 1,418 bytes


Class file image Download

<p align="center"><a href="" target="_blank"><img src="" width="470"></a></p>

<p align="center"> <a href="" target="_blank"><img src="" alt="Source"></a> <a href="" target="_blank"><img src="" alt="Packagist Version"></a> <img src="" alt="Packagist Downloads"> <img src="" alt="Source"> </p>

<h1 align="center">Simplest Slugify for PHP.</h1>


Slugify requires the Multibyte String mbstring extension from PHP.<br> Install the latest version using Composer:

$ composer require pharaonic/php-slugify


<a name="GS"></a>

Get Slug

use Pharaonic\Slugify\Slugify;
echo Slugify::get('Moamen Eltouny');

// OR
echo slug('Moamen Eltouny');

<a name="RM"></a>

Rules Manipulation

use Pharaonic\Slugify\Slugify;
Slugify::rule('', 'oe');


MIT license

For more information send a message to info at phpclasses dot org.