Skip to content
This repository has been archived by the owner on Feb 13, 2022. It is now read-only.

kostasxyz/greeklish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Greeklish

Convert Greek characters to latin and make greeklish slugs.

Quick Installation

To install through composer, simply put the following in your composer.json file:

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

Run composer update to pull down the latest version.

Now open up app/config/app.php and add the service provider to your providers array.

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

Now add the alias.

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

Usage

-- Make Slug.

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

    Will make:
    `geia-sou-kosme`

-- Make a greeklish text.

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

    Will make:
    `Geia sou kosme`

-- Extra arguments.

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

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

--

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages