ink/ink-str

There is no license information available for the latest version (dev-master) of this package.

Generate a URL friendly "slug" from a given string. (Skips ASCII)

Installs: 646

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 2

pkg:composer/ink/ink-str

dev-master 2013-10-05 19:00 UTC

This package is not auto-updated.

Last update: 2025-10-06 19:54:08 UTC


README

Generate a URL friendly "slug" from a given string. (Skips ASCII)

Installation

First, you'll need to add the package to the require attribute of your composer.json file:

{
    "require": {
        "ink/ink-str": "dev-master"
    },
}

Afterwards, run composer update from your command line.

Then, add 'Ink\InkStr\InkStrServiceProvider', to the list of service providers in app/config/app.php and add 'InkStr' => 'Ink\InkStr\InkStr' to the list of class aliases in app/config/app.php.

Using

$title = 'Türkçe yazılım. Azəricə yazılım';
$slug  = InkStr::slug($title);

echo $slug; // Returns "türkçe-yazılım-azəricə-yazılım"

Copyright and License

InkTranslatable was written by Orkhan Maharramli and released under the MIT License. See the LICENSE file for details.

Copyright 2013 Orkhan Maharramli