Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Light Field Bundle Laravel Package

corvet/light-field-bundle

View on GitHub
Deep Wiki
Context7

Corvet Light Fields Bundle

Custom masked date input field with integrated Flatpickr calendar and custom footer buttons (Today / Clear) for Symfony 8+ and AssetMapper (Symfony UX).

Features

  • Inputmask integration (formats text as dd.mm.yyyy dynamically).
  • Flatpickr integration (dark theme by default).
  • Custom Footer Buttons: Single-click buttons for "Today" and "Clear" that work perfectly with the input mask without stripping data.
  • Zero Node/NPM dependencies (built natively for Symfony AssetMapper).

Installation

1. Download the Bundle

Run the following command in your Symfony project:

composer require corvet/light-field-bundle

2. Install JavaScript Dependencies

Since this bundle relies on flatpickr and inputmask via AssetMapper, import them into your application's importmap.php:

php bin/console importmap:require flatpickr inputmask
bin/console importmap:require flatpickr/dist/themes/dark.css

Usage

Simply use LightDateType::class in your Symfony forms:

use Corvet\LightFieldBundle\Form\LightDateType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;

class OrderType extends AbstractType
{
    public function buildForm(FormBuilderInterface $builder, array $options): void
    {
        $builder->add('createdAt', LightDateType::class, [
            'label' => 'Select Date',
        ]);
    }
}

License

MIT License. See LICENSE for more information.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky