PHPackages                             frank29259/thsplitlib - 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. frank29259/thsplitlib

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

frank29259/thsplitlib
=====================

thai word split library

1.3(5y ago)136↓100%MITPHP

Since Oct 11Pushed 5y agoCompare

[ Source](https://github.com/frank-kios/thsplitlib)[ Packagist](https://packagist.org/packages/frank29259/thsplitlib)[ RSS](/packages/frank29259-thsplitlib/feed)WikiDiscussions master Synced 1mo ago

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

Thai Words Split Lib
====================

[](#thai-words-split-lib)

Lib ตัดคำภาษาไทย สำหรับ PHP ทดลองใช้กับ MPDF

การใช้งาน:

```
    $words = $segment->get_segment_array($text);
    $text = implode("|",$words);
```

Config:

```
    $mpdf->useDictionaryLBR = false;
```

Edit Mpdf.php ค้นหา `3) Break at SPACE`:

```
    if ($prevchar == '|') {
        $breakfound = [$contentctr, $charctr, $cutcontentctr, $cutcharctr, 'discard'];
    }
```

Edit Mpdf.php ค้นหา `// Selected OBJECTS are moved forward to next line, unless they come before a space or U+200B (type='discard')`:

```
    /* -- END OTL -- */
    $currContent = str_replace('|','',$currContent);
```

Edit Mpdf.php ค้นหา `// another character will fit, so add it on`:

```
    $currContent = str_replace('|','',$currContent);
    unset($content);
    unset($contentB);
```

Credits

- [Pongsathon Janyoi](https://medium.com/@pongsathon.janyoi?source=post_page-----bb66ca383b75--------------------------------)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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

Every ~53 days

Total

3

Last Release

1934d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/96ae766eaac9456053541ef59c44b0d78199087f07f70792bdeea338d8ae8dfc?d=identicon)[frank29259](/maintainers/frank29259)

---

Top Contributors

[![frank-kios](https://avatars.githubusercontent.com/u/529505?v=4)](https://github.com/frank-kios "frank-kios (15 commits)")[![iamcryptofennec](https://avatars.githubusercontent.com/u/128964?v=4)](https://github.com/iamcryptofennec "iamcryptofennec (6 commits)")

---

Tags

dictionarympdfphpthai

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/frank29259-thsplitlib/health.svg)

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

###  Alternatives

[structurizr-php/structurizr-php

Structurizr for PHP

170137.7k](/packages/structurizr-php-structurizr-php)[torifat/cake-menu_builder

A dynamic menu building helper for CakePHP 2.x

755.6k](/packages/torifat-cake-menu-builder)[backstage/laravel-og-image

Laravel package to generate dynamic Open Graph images

723.2k](/packages/backstage-laravel-og-image)[alrik11es/calendar

An structured calendar generator in array, object or json format

131.1k](/packages/alrik11es-calendar)

PHPackages © 2026

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