teepluss/wordbreaker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

teepluss/wordbreaker

最新稳定版本:v0.1

Composer 安装命令:

composer require teepluss/wordbreaker

包简介

Word breaker is Thai wording separator for using with fulltext software.

README 文档

README

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

统计信息

  • 总下载量: 26
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固