2017 © Pedro Peláez
 

library ink-str

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

image

ink/ink-str

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

  • Saturday, October 5, 2013
  • by orkhan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 550 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

InkStr

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

Installation

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

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

Afterwards, run composer update from your command line., (*3)

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., (*4)

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"

InkTranslatable was written by Orkhan Maharramli and released under the MIT License. See the LICENSE file for details., (*5)

Copyright 2013 Orkhan Maharramli, (*6)

The Versions

05/10 2013

dev-master

9999999-dev https://github.com/orkhan/InkStr

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

  Sources   Download

The Requires

 

by Avatar orkhan

laravel support slug str