PHPackages                             mrshanebarron/datepicker - 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. mrshanebarron/datepicker

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

mrshanebarron/datepicker
========================

Date picker component for Laravel - supports Livewire and Vue

v1.0.1(4mo ago)08MITPHPPHP ^8.1

Since Dec 14Pushed 4mo agoCompare

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

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

Datepicker
==========

[](#datepicker)

A date picker input component for Laravel applications. Features a dropdown calendar for easy date selection. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/datepicker
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### With Placeholder

[](#with-placeholder)

```

```

### Date Format

[](#date-format)

```

```

### Min/Max Dates

[](#minmax-dates)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`wire:model`string-Selected date`placeholder`string`'Select date'`Input placeholder`format`string`'YYYY-MM-DD'`Display format`min-date`string`null`Earliest selectable date`max-date`string`null`Latest selectable date`disabled`boolean`false`Disable inputVue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbDatepicker } from './vendor/sb-datepicker';
app.component('SbDatepicker', SbDatepicker);
```

### Basic Usage

[](#basic-usage-1)

```

import { ref } from 'vue';
const selectedDate = ref(null);

```

### With Options

[](#with-options)

```

```

### Date Range Constraints

[](#date-range-constraints)

```

import { ref } from 'vue';

const appointmentDate = ref(null);
const minDate = new Date().toISOString().split('T')[0];
const maxDate = new Date(Date.now() + 90 * 24 * 60 * 60 * 1000).toISOString().split('T')[0];

```

### Form Example

[](#form-example)

```

      Start Date

      End Date

      Submit

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`String`null`Selected date (YYYY-MM-DD)`placeholder`String`'Select date'`Placeholder text`format`String`'YYYY-MM-DD'`Display format`minDate`String`null`Minimum date`maxDate`String`null`Maximum date`disabled`Boolean`false`Disable input### Events

[](#events)

EventPayloadDescription`update:modelValue``string`Date selectedDate Format
-----------

[](#date-format-1)

The component stores dates in `YYYY-MM-DD` format but can display in various formats:

FormatExample`YYYY-MM-DD`2024-01-15`DD/MM/YYYY`15/01/2024`MM/DD/YYYY`01/15/2024`MMM DD, YYYY`Jan 15, 2024Features
--------

[](#features)

- **Calendar Dropdown**: Visual date selection
- **Keyboard Navigation**: Arrow keys in calendar
- **Month Navigation**: Previous/next month
- **Date Constraints**: Min/max date limits
- **Click Outside**: Closes on outside click

Styling
-------

[](#styling)

Uses Tailwind CSS:

- Standard input styling
- Calendar dropdown with shadow
- Highlighted today's date
- Blue selected date
- Disabled dates grayed out

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance74

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

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

Total

2

Last Release

145d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-datepicker/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-datepicker/health.svg)](https://phpackages.com/packages/mrshanebarron-datepicker)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M210](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M858](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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