This package is abandoned and no longer maintained. The author suggests using the hojabbr/persianslug package instead.

A simple Laravel 5.x package to create Persian (Farsi) slugs

Maintainers

Details

github.com/hojabbr/slug

Source

Issues

Installs: 376

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 1

Forks: 7

Open Issues: 0

pkg:composer/hosseinhkj/slug

v1.2 2016-06-18 13:36 UTC

This package is auto-updated.

Last update: 2020-02-06 13:13:51 UTC


README

This package has been replaced with this package: https://github.com/hojabbr/PersianSlug

Persian (Farsi) Slug generator for Laravel 5

License

Quick Installation

Begin by installing the package through Composer.

composer require hosseinhkj/slug

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!