PHPackages                             rundiz/thai-date - 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. rundiz/thai-date

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

rundiz/thai-date
================

Display date in Thai language use PHP date() and strftime()

2.1.2(1y ago)157.7k5MITPHPPHP &gt;=5.3.0

Since Apr 14Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Rundiz/thai-date)[ Packagist](https://packagist.org/packages/rundiz/thai-date)[ RSS](/packages/rundiz-thai-date/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Thaidate Component
==================

[](#thaidate-component)

Display date in Thai by using same PHP `date()` and `strftime()` function attributes.

Tested up to PHP 8.5.

[![Latest Stable Version](https://camo.githubusercontent.com/8b875488155234a71a1b87b96c613f0e56a99e2639ddc4e73c4fc8eab7353331/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f746861692d646174652f762f737461626c65)](https://packagist.org/packages/rundiz/thai-date)[![License](https://camo.githubusercontent.com/289a55162765dec62cb1821c94273681385602c15f83b3aba7c4e57d4c20867c/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f746861692d646174652f6c6963656e7365)](https://packagist.org/packages/rundiz/thai-date)[![Total Downloads](https://camo.githubusercontent.com/c0e03d70da8881a824010015a63411bb2ee76738e5b9dff61b7537d74f9abebf/68747470733a2f2f706f7365722e707567782e6f72672f72756e64697a2f746861692d646174652f646f776e6c6f616473)](https://packagist.org/packages/rundiz/thai-date)[![GitHub code size in bytes](https://camo.githubusercontent.com/bb5ee7c3873e4541470a45726044718db53df59d1eba05165430090eba09633e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f72756e64697a2f746861692d64617465)](https://camo.githubusercontent.com/bb5ee7c3873e4541470a45726044718db53df59d1eba05165430090eba09633e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f72756e64697a2f746861692d64617465)[![GitHub repo size](https://camo.githubusercontent.com/889cafdd10d10d41bd48e4a9cc1d3e0a39b08746f8292f392ef3354ea2282c11/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f72756e64697a2f746861692d64617465)](https://camo.githubusercontent.com/889cafdd10d10d41bd48e4a9cc1d3e0a39b08746f8292f392ef3354ea2282c11/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f72756e64697a2f746861692d64617465)[![GitHub all releases](https://camo.githubusercontent.com/f3d924f79646cd1493e357a624fe6fd41e3265f60ffbc94b9a5441a7d59aaf0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f52756e64697a2f746861692d646174652f746f74616c3f7374796c653d736f6369616c)](https://camo.githubusercontent.com/f3d924f79646cd1493e357a624fe6fd41e3265f60ffbc94b9a5441a7d59aaf0a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f52756e64697a2f746861692d646174652f746f74616c3f7374796c653d736f6369616c)

```
echo thaidate('วันlที่ j F พ.ศ.Y เวลาH:i:s');
// results: วันพฤหัสบดีที่ 12 พฤศจิกายน พ.ศ.2558 เวลา18:55:29
```

```
echo sprintf(thaistrftime('%%s%A%%s %d %B %%s%Y %%s%H:%M:%S'), 'วัน', 'ที่', 'พ.ศ.', 'เวลา');
// results: วันพฤหัสบดีที่ 12 พฤศจิกายน พ.ศ.2558 เวลา18:56:06
```

```
echo sprintf(intlDate('cccc\'%1$s\' d MMMM Gyyyy \'%2$s\'H:mm:ss'), 'ที่', 'เวลา');
// results: วันพฤหัสบดีที่ 12 พฤศจิกายน พ.ศ.2558 เวลา18:56:06
```

For more details, please look in tests folder

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance61

Regular maintenance activity

Popularity31

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~527 days

Recently: every ~540 days

Total

7

Last Release

515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c1c05f37e3e86668403e34090253927c52e4afe83f644dc908abd975ec69f0a?d=identicon)[ve3](/maintainers/ve3)

---

Top Contributors

[![ve3](https://avatars.githubusercontent.com/u/1568262?v=4)](https://github.com/ve3 "ve3 (33 commits)")

---

Tags

datethaidateThai datethaidatedate thaidatethaidate translation

### Embed Badge

![Health badge](/badges/rundiz-thai-date/health.svg)

```
[![Health](https://phpackages.com/badges/rundiz-thai-date/health.svg)](https://phpackages.com/packages/rundiz-thai-date)
```

###  Alternatives

[rlanvin/php-rrule

Lightweight and fast recurrence rules for PHP (RFC 5545)

69810.6M39](/packages/rlanvin-php-rrule)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6308.9M39](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9201.2M45](/packages/morilog-jalali)[brick/date-time

Date and time library

3623.3M60](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

2079.7M16](/packages/aeon-php-calendar)

PHPackages © 2026

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