1. Go to this page and download the library: Download zonuexe/budoux library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zonuexe / budoux example snippets
use Budoux;
$parser = Budoux\Parser::loadDefaultJapaneseParser();
var_dump($parser->parse('今日は天気です。'));
# ['今日は', '天気です。']
use Budoux;
$parser = Budoux\Parser::loadDefaultSimplifiedChineseParser();
var_dump($parser->parse('今天是晴天。'));
# ['今天', '是', '晴天。']
use Budoux;
$parser = Budoux\Parser::loadDefaultTraditionalChineseParser();
var_dump($parser->parse('今天是晴天。'));
# ['今天', '是', '晴天。']