/slug

Persian (Farsi) Slug generator for Laravel 5.x

Primary LanguagePHP

Persian (Farsi) Slug generator for Laravel 5.X

License

Quick Installation

Begin by installing the package through Composer.

composer require hosseinhkj/slug:dev

Once this operation is complete, simply add both the service provider and facade classes to your project's config/app.php file:

Service Provider

Hosseinhkj\Slug\SlugServiceProvider::class,

Facade

'Slug' => Hosseinhkj\Slug\Facades\Slug::class,

Example

use Slug;
$slug=Slug::slugify("سلام خوبی؟ این یک تست است"); // سلام-خوبی-این-یک-تست-است

And that's it! With your coffee in reach, start building out some awesome slugs!