2017 © Pedro Peláez
 

helper greeklish

Converts Greek characters to latin. Used for slugs mainly

image

skapator/greeklish

Converts Greek characters to latin. Used for slugs mainly

  • Tuesday, September 30, 2014
  • by skapator
  • Repository
  • 0 Watchers
  • 6 Stars
  • 149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Greeklish

Convert Greek characters to latin and make greeklish slugs., (*1)

Quick Installation

To install through composer, simply put the following in your composer.json file:, (*2)

{
    "require": {
        "skapator/greeklish": "dev-master"
    }
}

Run composer update to pull down the latest version., (*3)

Now open up app/config/app.php and add the service provider to your providers array., (*4)

    'providers' => array(
        ...
        'Skapator\Greeklish\GreeklishServiceProvider',
    )

Now add the alias., (*5)

    'aliases' => array(
        ...
        'Greeklish' => 'Skapator\Greeklish\Facades\Greeklish',
    )

Usage

-- Make Slug., (*6)

    $text = 'Γεια σου Κόσμε';
    Greeklish::slug($text)

    Will make:
    `geia-sou-kosme`

-- Make a greeklish text., (*7)

    $text = 'Γεια σου Κόσμε';
    Greeklish::text($text)

    Will make:
    `Geia sou kosme`

-- Extra arguments., (*8)

    Greeklish::text($text, true)
    // will remove one letter words

    Greeklish::slug($text, false, true)
    //will remove two letter words

--, (*9)

The Versions

30/09 2014

dev-master

9999999-dev

Converts Greek characters to latin. Used for slugs mainly

  Sources   Download

GPL-3.0

The Requires

 

by Avatar skapator

laravel laravel4 greeklish