PHPackages                             phattarachai/filament-thai-date-picker - 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. phattarachai/filament-thai-date-picker

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

phattarachai/filament-thai-date-picker
======================================

FilamentPHP Thai Date Picker Form Component

3.0.1(3mo ago)61.9k↑56.7%MITJavaScriptPHP ^8.2

Since May 17Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/phattarachai/filament-thai-date-picker)[ Packagist](https://packagist.org/packages/phattarachai/filament-thai-date-picker)[ Docs](https://github.com/phattarachai/filament-thai-date-picker)[ RSS](/packages/phattarachai-filament-thai-date-picker/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (17)Versions (25)Used By (0)

FilamentPHP Thai Date Picker Form Component
===========================================

[](#filamentphp-thai-date-picker-form-component)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0acfc22dcfc2a20ff101f58d90e70f00949ebd9c3901b1c8037dcc39f72e3c2f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068617474617261636861692f66696c616d656e742d746861692d646174652d7069636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phattarachai/filament-thai-date-picker)[![Total Downloads](https://camo.githubusercontent.com/1662a82609624083dbf7c7662ffd51029869ae4ff85fd9fa75a9675d281b8998/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068617474617261636861692f66696c616d656e742d746861692d646174652d7069636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phattarachai/filament-thai-date-picker)

ปฏิทิน Thai Date Picker สำหรับ Filament Form Component วัน/เดือน/ปีที่แสดงใน Form เป็นภาษาไทย (พ.ศ.) แต่เก็บเข้า Model เป็นปี ค.ศ.ตามปกติ

[![Thai Date Picker](thai-date-picker.png)](thai-date-picker.png)

Version ที่รองรับ
-----------------

[](#version-ที่รองรับ)

FilamentThaiDatePickerสถานะ5.x3.xเวอร์ชันปัจจุบัน4.x2.xใช้งาน3.x1.xหยุด supportวิธีติดตั้ง
-----------

[](#วิธีติดตั้ง)

Run คำสั่ง composer require เพื่อติดตั้ง Package

```
composer require phattarachai/filament-thai-date-picker
```

ทำการ publish ไฟล์ javascript (ถ้าหากไม่ได้ run คำสั่งนี้อยู่แล้วในไฟล์ composer.json `post-autoload-dump`)

```
php artisan filament:upgrade
```

วิธีใช้งาน ThaiDatePicker
-------------------------

[](#วิธีใช้งาน-thaidatepicker)

ใช้เหมือน DatePicker ปกติ แต่เรียกใช้ class ThaiDatePicker แทน

```
use Phattarachai\FilamentThaiDatePicker\ThaiDatePicker;

ThaiDatePicker::make('order_date')
    ->label('วันที่สั่งซื้อ')
    ->suffixIcon('heroicon-o-calendar')
```

แบบ มีเวลา

```
use Phattarachai\FilamentThaiDatePicker\ThaiDateTimePicker;

ThaiDateTimePicker::make('transfer_at')
    ->label('เวลาที่โอน')
    ->suffixIcon('heroicon-o-calendar')
```

โดยปี พ.ศ.จะใช้สำหรับการแสดงผลเท่านั้น เวลาใช้งาน state เพื่อบันทึกลงฐานข้อมูลจะได้เป็นปี ค.ศ. ตามปกติ

```
$data = $this->form->getState();
// $data['order_date'] = '2024-05-17'
```

การแสดงวันที่ภาษาไทยใน Infolist
-------------------------------

[](#การแสดงวันที่ภาษาไทยใน-infolist)

นอกจาก Datepicker แล้วใน package นี้เพิ่ม method `thaidate()` และ `thaidatetime()`สำหรับช่วยการแสดงผล Infolist วันที่ปี พ.ศ. ภาษาไทย

```
use Filament\Infolists\Components\TextEntry;

TextEntry::make('order_date')
    ->label('วันที่สั่งซื้อ')
    ->thaidate(),
    // 18 พ.ค. 67
```

```
use Filament\Infolists\Components\TextEntry;

TextEntry::make('created_at')
    ->label('วันที่สร้าง')
    ->thaidatetime(),
    // 18 พ.ค. 67 12:05
```

ถ้า field วันที่ เป็นค่า null ได้แล้วแล้วต้องการให้แสดงค่า default สามารถส่ง parameter default ไปใน function ได้

```
use Filament\Infolists\Components\TextEntry;

TextEntry::make('confirm_date')
    ->label('วันที่ยืนยัน')
    ->thaidate(default: '-'),
    // -
```

การแสดงวันที่ภาษาไทยใน Table Column
-----------------------------------

[](#การแสดงวันที่ภาษาไทยใน-table-column)

เช่นเดียวกับ Infolist package นี้เพิ่ม macro method `thaidate()` สำหรับการ format การแสดงผลคอลัมน์วันที่เพื่อให้แสดงผลเป็นปี พ.ศ. ภาษาไทย ได้เลย

```
use Filament\Tables;

Tables\Columns\TextColumn::make('order_date')
    ->label('วันที่')
    ->thaidate()
    // สามารถระบุ date format ได้เหมือน function date_format ของ PHP
    // default format เป็น d M y
    // เช่น 18 พ.ค. 67
```

ถ้าเป็น วันที่และเวลาใช้ method `thaidatetime()`

```
use Filament\Tables;

Tables\Columns\TextColumn::make('created_at')
    ->label('วันที่สร้าง')
    ->thaidatetime()
    // default format เป็น d M y H:i
    // เช่น 18 พ.ค. 67 12:00
```

ผู้พัฒนา
--------

[](#ผู้พัฒนา)

สวัสดีครับ ผมอ๊อฟนะครับ เป็น Full Stack Web Developer รับ Implement งาน Project ทางด้าน Web Application สำหรับองค์กร ธุรกิจ SME ส่วนงานราชการและบริษัทขนาดใหญ่ครับ

line: [phat-chai](https://line.me/ti/p/~phat-chai)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance81

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community7

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

Recently: every ~0 days

Total

24

Last Release

101d ago

Major Versions

1.6.0 → 2.0.02025-08-12

2.1.0 → 3.0.02026-03-24

PHP version history (2 changes)1.0.1PHP ^8.1

2.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![phattarachai](https://avatars.githubusercontent.com/u/2162876?v=4)](https://github.com/phattarachai "phattarachai (42 commits)")

---

Tags

filamentphplaravelphattarachaifilament-thai-date-picker

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/phattarachai-filament-thai-date-picker/health.svg)

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

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[awcodes/richer-editor

A collection of extensions and tools to enhance the Filament Rich Editor field.

3912.8k9](/packages/awcodes-richer-editor)[rawilk/filament-password-input

Enhanced password input component for filament.

52263.4k14](/packages/rawilk-filament-password-input)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

34226.4k13](/packages/schmeits-filament-character-counter)[biostate/filament-menu-builder

An Elegant Menu Builder for FilamentPHP

6528.1k2](/packages/biostate-filament-menu-builder)

PHPackages © 2026

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