sters / mikan.php
Resolve method of Japanese line break problem
                                    Fund package maintenance!
                                                                            
                                                                                                                                        sters
                                                                                    
                                                                
Installs: 202
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sters/mikan.php
Requires
- php: ^7.1
Requires (Dev)
- phpunit/phpunit: ~5.6
- squizlabs/php_codesniffer: ^3.0@dev
This package is auto-updated.
Last update: 2025-10-27 18:24:07 UTC
README
Resolve method of Japanese line break problem.
Transform from: Mikan.js - 機械学習を用いていない日本語改行問題へのソリューション
Usage
$mikan = new Mikan();
$result = $mikan->split('常に最新、最高のモバイル。Androidを開発した同じチームから。');
var_dump($result);
----
array(8) {
  [0]=>
  string(6) "常に"
  [1]=>
  string(9) "最新、"
  [2]=>
  string(9) "最高の"
  [3]=>
  string(15) "モバイル。"
  [4]=>
  string(10) "Androidを"
  [5]=>
  string(12) "開発した"
  [6]=>
  string(6) "同じ"
  [7]=>
  string(18) "チームから。"
}
This library will only splitting text, you need to make presentation logic yourself.
How about css styling, see transform from codes.
Mikan.js - 機械学習を用いていない日本語改行問題へのソリューション