This package is abandoned and no longer maintained. No replacement package was suggested.

This is a Symfony Bundle that adds Color Picker Form Type.

Installs: 59 450

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 1

Forks: 0

Open Issues: 0


1.1.0 2017-12-09 23:21 UTC

This package is auto-updated.

Last update: 2020-11-16 04:33:25 UTC


Build Status SensioLabsInsight StyleCI Coverage Status

Adds Color Picker Form Type to Symfony.

Built on top of tinyColorPicker.



1. Add to composer.json to the require key

composer require kunicmarko/color-picker-bundle

2. Register the bundle in app/AppKernel.php

$bundles = array(
    // ...
    new KunicMarko\ColorPickerBundle\ColorPickerBundle(),

3. Install assets

app/console assets:install

How to use

In your form you can add it like:

// Symfony 2.8 and newer versions
use KunicMarko\ColorPickerBundle\Form\Type\ColorPickerType;

$builder->add('field', ColorPickerType::class);

At the end of your body/layout add:

<script type="text/javascript" src="{{ asset('bundles/colorpicker/js/jqColorPicker.min.js') }}"></script>
<script type="text/javascript">