teepluss/wordbreaker

Word breaker is Thai wording separator for using with fulltext software.
26 4
Install
composer require teepluss/wordbreaker
Latest Version:v0.1
PHP:>=5.4.0
License:MIT
Last Updated:Nov 24, 2014
Links: GitHub  ·  Packagist
Maintainer: teepluss

Laravel Thai Word Breaker.

Wordbreaker is a thai wording separator.

This package is just a wrapper from PhlongTaIam: PHP Thai word breaker

Installation

To get the lastest version of Wordbreaker simply require it in your composer.json file.

"teepluss/wordbreaker": "dev-master"

You'll then need to run composer install to download it and have the autoloader updated.

Once Wordbreaker is installed you need to register the service provider with the application. Open up app/config/app.php and find the providers key.

'providers' => array(

    'Teepluss\Wordbreaker\WordbreakerServiceProvider'

)

Theme also ships with a facade which provides the static syntax for creating collections. You can register the facade in the aliases key of your app/config/app.php file.

'aliases' => array(

    'Wordbreaker' => 'Teepluss\Wordbreaker\Facades\Wordbreaker',

)

Publish config using artisan CLI.

php artisan config:publish teepluss/wordbreaker

Usage

// Append dictionary.
$source = [
    'ทดสอบ',
    'ประโยค',
    'ภาษาไทย',
    'ยาว',
    'แตก',
    'คำ'
];

Wordbreaker::add($source);

// Separate sentence into word.

$text = 'ทดสอบการแตกคำจากประโยคที่มีความยาว และติดกันมากๆ ในภาษาไทย';

$w = Wordbreaker::make($text);

var_dump($w);

Support or Contact

If you have some problem, Contact teepluss@gmail.com

Support via PayPal

Related Packages

ascension/laravel4-getgravatar

A Laravel 4 package . Given an email address it automatically retrieves an Avata...

87 0
metrakit/laravel-video-converter-api

An API for convert videos with ffmpeg

37 3
gerob/alert

Alert is a package to be used with Laravel 4 API messages where you aren't passi...

56 0
davin-bao/laravel-xun-search

Laravel 5 package for full-text search over Eloquent models based on XunSearch.

40 11
aircaching/disqus

Laravel 4 package to embed disqus comment

16 1