phone-myat-kyaw/blade-date-pickers
Composer 安装命令:
composer require phone-myat-kyaw/blade-date-pickers
包简介
Native Blade date, datetime, and date range pickers.
README 文档
README
A bundle of premium, native Laravel Blade components for Date, Date-Time, and Date-Range pickers. Powered by Alpine.js, Day.js, and Floating UI (no heavy Flatpickr or jQuery dependencies).
It supports dark mode out of the box and compiles directly with your application's Tailwind CSS pipeline ("Bring Your Own CSS" style).
Preview
Features
- Light & Dark Mode: Respects Tailwind's class-based dark mode (
.dark). - Zero Assets Overhead: JavaScript is minified, bundled, and inlined directly into cached Blade views. No CDN or external asset loading required.
- Floating Popovers: Powered by Floating UI with escape-overflow containment (doesn't clip inside containers or near page edges).
- Date Range Presets: Quick select range options (Today, Yesterday, Last 7 Days, Last 30 Days, etc.) with a collapsing calendar drawer.
- Typable Time Selection: Hour and Minute inputs are typable and validate inputs on the fly (with fallback select scrollboxes).
- Responsive Grid: Automatically adapts from multi-column calendar displays on desktop to a stacked layout on mobile.
Installation
-
Install the package via Composer:
composer require phone-myat-kyaw/blade-date-pickers
-
Add the vendor scanning path to your Tailwind configuration file (e.g.
tailwind.config.jsorapp.cssfor Tailwind v4) so Tailwind compiles the picker styles:For Tailwind CSS v4 (
app.css):@source '../../vendor/phone-myat-kyaw/blade-date-pickers/resources/views/**/*.blade.php';
For Tailwind CSS v3 (
tailwind.config.js):content: [ // ... "./vendor/phone-myat-kyaw/blade-date-pickers/resources/views/**/*.blade.php", ];
Usage
1. Single Date Picker
A clean dropdown calendar popover for selecting a single date.
<x-date-picker name="birthday" placeholder="Select date of birth" />
2. Date Time Picker
A hybrid calendar + typable time input box for selecting dates and exact times.
<x-datetime-picker name="appointment_at" placeholder="Choose date & time" />
3. Date Range Picker
A range selection popover with presets list. Selecting custom range expands two-month side-by-side calendars.
<x-date-range-picker name="booking_range" placeholder="Select check-in & check-out dates" />
Customization
Publish Views (Override Styles)
If you want to modify the HTML layouts, change typography, or adjust colors, publish the component views:
php artisan vendor:publish --tag=blade-date-pickers-views
This copies the templates to resources/views/vendor/blade-date-pickers/. You can edit them freely; Laravel will load these published views instead of the vendor defaults.
Note: If you publish the views, update your Tailwind content configuration path to scan your local views folder:
@source '../views/vendor/blade-date-pickers/**/*.blade.php';
Component Attributes
All picker components accept standard Laravel component properties:
name(required): The name of the form field.id(optional): Defaults to the name.value(optional): Prefilled database values (e.g.2026-07-15or2026-07-15 12:00:00or2026-07-08 to 2026-07-15).placeholder(optional): Input placeholder text.disabled(optional): Disables the trigger input.required(optional): Enforces HTML form validation.display-format(optional): The format shown to the user inside the input trigger box (e.g.DD/MM/YYYY,D MMMM YYYY, orhh:mm A).format(optional): The database-compliant format submitted in the form request. Defaults toYYYY-MM-DD(for single/range pickers) andYYYY-MM-DD HH:mm:ss(for datetime pickers).
They also accept parent attributes and event listeners (like @change) which are forwarded to the root element.
Testing
This package can be tested using Laravel Testbench.
-
Install development dependencies:
composer install --dev
-
Run the test suite:
vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.
phone-myat-kyaw/blade-date-pickers 适用场景与选型建议
phone-myat-kyaw/blade-date-pickers 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 07 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 phone-myat-kyaw/blade-date-pickers 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phone-myat-kyaw/blade-date-pickers 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 phone-myat-kyaw/blade-date-pickers 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This module allows drag & drop grouping of items in a GridField
Adds text size controls and text-to-speech controls to Flarum discussion content.
Symfony and Flysystem integration for the maintained KCFinder continuation.
Laravel integration for the maintained KCFinder continuation.
PHPStan rules shared across KnpLabs organization projects
ByteDance provider for PHP AI SDK
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2026-07-15

