PHPackages                             zenepay/baht-text - 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. zenepay/baht-text

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

zenepay/baht-text
=================

reading money number to text in Thai baht

1.0.1(1y ago)3517↑33.3%MITPHPPHP &gt;=8.0

Since Jun 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/zenepay/baht-text)[ Packagist](https://packagist.org/packages/zenepay/baht-text)[ RSS](/packages/zenepay-baht-text/feed)WikiDiscussions main Synced 1mo ago

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

Baht Text: spell baht money from number to text
===============================================

[](#baht-text-spell-baht-money-from-number-to-text)

[![Latest Stable Version](https://camo.githubusercontent.com/3b922ae821889c90c033bcbdfaaf72e127b1fb1fd981bcfd0d7c682a9c8ab11a/68747470733a2f2f706f7365722e707567782e6f72672f7a656e657061792f626168742d746578742f76)](https://packagist.org/packages/zenepay/baht-text)[![Total Downloads](https://camo.githubusercontent.com/ff1ff8fa0e87e6431125cbe01e24a4ca34ab12ef0445cf5afdfb5128c4097b70/68747470733a2f2f706f7365722e707567782e6f72672f7a656e657061792f626168742d746578742f646f776e6c6f616473)](https://packagist.org/packages/zenepay/baht-text)[![License](https://camo.githubusercontent.com/9d85310b08c5b8fdcbe341fb977c2a5a79cedf1cf8bb484cc9828123a4901d6d/68747470733a2f2f706f7365722e707567782e6f72672f7a656e657061792f626168742d746578742f6c6963656e7365)](https://packagist.org/packages/zenepay/baht-text)[![PHP Version Require](https://camo.githubusercontent.com/118ed11280a11d153e6546bb865239409bf5e7ab9b499415958c86b95336d621/68747470733a2f2f706f7365722e707567782e6f72672f7a656e657061792f626168742d746578742f726571756972652f706870)](https://packagist.org/packages/zenepay/baht-text)

This package helps to translate baht amount to text. This should be useful for Invoice, Receipts in Thai baht

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require zenepay/baht-text
```

Usage
-----

[](#usage)

### Just simply calls the static function toText()

[](#just-simply-calls-the-static-function-totext)

Support input of valid money format without symbol eg. 1,000,20.50

```
use Zenepay\BahtText\Baht;

$totalAmount = '2,010,025.25';
echo Baht::toText($totalAmount); // 'สองล้านหนึ่งหมื่นยี่สิบห้าบาทยี่สิบห้าสตางค์'
```

validate input format with
==========================

[](#validate-input-format-with)

-10000.23 // true 1,000.23 // true -1,000.23 // true 1,0000,234.00 //false ู฿1,999,123.33 //false

Demo &amp; Show Case
--------------------

[](#demo--show-case)

- [Water Billing](https://demo.zoploen.com/demo/meterbill)
- user login:
- password: demo1234

Credits
-------

[](#credits)

- [zenepay](https://github.com/zenepay)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT)

Baht Text: ใช้เพื่อแปลงตัวเลขเงินบาท ให้เป็นข้อความอ่าน
=======================================================

[](#baht-text-ใช้เพื่อแปลงตัวเลขเงินบาท-ให้เป็นข้อความอ่าน)

เช่น '2,010,025.25' ==&gt; 'สองล้านหนึ่งหมื่นยี่สิบห้าบาทยี่สิบห้าสตางค์'

การติดตั้ง
----------

[](#การติดตั้ง)

ติดตั้งผ่าน composer

```
composer require zenepay/baht-text
```

การใช้งาน
---------

[](#การใช้งาน)

```
use Zenepay\BahtText\Baht;

$totalAmount = '2,010,025.25';
echo Baht::toText($totalAmount); // 'สองล้านหนึ่งหมื่นยี่สิบห้าบาทยี่สิบห้าสตางค์'
```

รองรับค่า input ที่เป็นจำนวนเงินที่ถูกต้อง มีคอมม่าหรือไม่มีก็ได้ ได้ทั้ง ติดลบและบวก

ดูตัวอย่างในบิล
---------------

[](#ดูตัวอย่างในบิล)

- [Water Billing](https://demo.zoploen.com/meterbill)
- user login:
- password: demo1234

Credits
-------

[](#credits-1)

- [zenepay](https://github.com/zenepay)
- [All Contributors](../../contributors)

License
-------

[](#license-1)

The MIT License (MIT)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~0 days

Total

2

Last Release

703d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.4

1.0.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/514bdcdca020d9c3e9e50dc74ab9ad7f79283be106fb52f7adfd5595a4faba0d?d=identicon)[zenepay](/maintainers/zenepay)

---

Top Contributors

[![zenepay](https://avatars.githubusercontent.com/u/1179823?v=4)](https://github.com/zenepay "zenepay (12 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zenepay-baht-text/health.svg)

```
[![Health](https://phpackages.com/badges/zenepay-baht-text/health.svg)](https://phpackages.com/packages/zenepay-baht-text)
```

PHPackages © 2026

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