phone-myat-kyaw/blade-date-pickers 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Total Downloads Software License

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

Date Picker Preview Date Range Picker 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

  1. Install the package via Composer:

    composer require phone-myat-kyaw/blade-date-pickers
  2. Add the vendor scanning path to your Tailwind configuration file (e.g. tailwind.config.js or app.css for 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-15 or 2026-07-15 12:00:00 or 2026-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, or hh:mm A).
  • format (optional): The database-compliant format submitted in the form request. Defaults to YYYY-MM-DD (for single/range pickers) and YYYY-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.

  1. Install development dependencies:

    composer install --dev
  2. 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 我们能提供哪些服务?
定制开发 / 二次开发

基于 phone-myat-kyaw/blade-date-pickers 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-07-15