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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle