PHPackages                             sters/mikan.php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sters/mikan.php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sters/mikan.php
===============

Resolve method of Japanese line break problem

1.0(7y ago)0203MITPHPPHP ^7.1

Since Jul 10Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sters/mikan.php)[ Packagist](https://packagist.org/packages/sters/mikan.php)[ Docs](https://github.com/sters/mikan.php)[ RSS](/packages/sters-mikanphp/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

mikan.php
=========

[](#mikanphp)

[![CircleCI](https://camo.githubusercontent.com/c2cfaba5b31656a2b5028cfc6aa00d88849e520eb81b1717c169a78333b2ca13/68747470733a2f2f636972636c6563692e636f6d2f67682f73746572732f6d696b616e2e7068702e7376673f7374796c653d737667)](https://circleci.com/gh/sters/mikan.php)[![Packagist](https://camo.githubusercontent.com/9dd7c1da18a872b992291931f973a354fc59aeb750346614b5853afafd6ee2a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73746572732f6d696b616e2e7068702e737667)](https://packagist.org/packages/sters/mikan.php)

Resolve method of Japanese line break problem.

Transform from: [Mikan.js - 機械学習を用いていない日本語改行問題へのソリューション](https://github.com/trkbt10/mikan.js)

Usage
=====

[](#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 - 機械学習を用いていない日本語改行問題へのソリューション](https://github.com/trkbt10/mikan.js)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2912d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1658147?v=4)[sters](/maintainers/sters)[@sters](https://github.com/sters)

---

Top Contributors

[![sters](https://avatars.githubusercontent.com/u/1658147?v=4)](https://github.com/sters "sters (7 commits)")

---

Tags

japanesemikan.js

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/sters-mikanphp/health.svg)

```
[![Health](https://phpackages.com/badges/sters-mikanphp/health.svg)](https://phpackages.com/packages/sters-mikanphp)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
