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(6mo ago)08MITPHPPHP ^8.1

Since Dec 14Pushed 6mo agoCompare

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

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

32

—

LowBetter than 69% of packages

Maintenance67

Regular maintenance activity

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity45

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

200d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/193358540?v=4)[Mr Shane Barron](/maintainers/mrshanebarron)[@mrshanebarron](https://github.com/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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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