HTTPS SSH

Zebra Datepicker Bundle

Provides the Zebra Datepicker jQuery plugin with a Symfony Bundle.

Getting started

1. Require the Zebra Datepicker Bundle with Composer:

composer require kmelia/zebra-datepicker-bundle "0.*"

Composer will install the bundle to your project's vendor/kmelia/zebra-datepicker-bundle directory.

2. Enable the bundle in the Symfony kernel app/AppKernel.php:

<?php

public function registerBundles()
{
    // vendor
    $bundles[] = new Kmelia\ZebraDatepickerBundle\KmeliaZebraDatepickerBundle();
}

3. Use the custom Twig Extension:

{# load the javascript #}
{{ zebra_datepicker_load_js() }}

{# load the stylesheet #}
{{ zebra_datepicker_load_css() }}

{# create a Zebra_Datepicker input[name="element"] #}
{{ zebra_datepicker_input('element') }}