PHPackages                             xmon/color-picker-type-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. xmon/color-picker-type-bundle

AbandonedArchivedSymfony-bundle[Templating &amp; Views](/categories/templating)

xmon/color-picker-type-bundle
=============================

The ColorPickerTypeBundle extends Symfony2 form types, creates a new ColorPicker form type, to display a javascript color picker.

v1.0.6(9y ago)133.0k7MITJavaScriptPHP &gt;=5.4

Since Mar 25Pushed 6mo ago2 watchersCompare

[ Source](https://github.com/xmon/ColorPickerTypeBundle)[ Packagist](https://packagist.org/packages/xmon/color-picker-type-bundle)[ Docs](https://github.com/xmon/ColorPickerTypeBundle)[ RSS](/packages/xmon-color-picker-type-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

ColorPickerTypeBundle
=====================

[](#colorpickertypebundle)

> **DEPRECATED**: This bundle is no longer maintained. Symfony includes [`ColorType`](https://symfony.com/doc/current/reference/forms/types/color.html) natively since version 5.1.

Migration to native
-------------------

[](#migration-to-native)

### Before (with this bundle)

[](#before-with-this-bundle)

```
use Xmon\ColorPickerTypeBundle\Form\Type\ColorPickerType;

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

### Now (Symfony 5.1+)

[](#now-symfony-51)

```
use Symfony\Component\Form\Extension\Core\Type\ColorType;

$builder->add('color', ColorType::class);
```

### Hex color validation

[](#hex-color-validation)

If you were using the `HexColor` constraint, you can replace it with `Regex`:

```
use Symfony\Component\Validator\Constraints as Assert;

#[Assert\Regex(
    pattern: '/^#[0-9a-fA-F]{6}$/',
    message: 'The color {{ value }} is not valid.'
)]
public ?string $color = null;
```

---

History
-------

[](#history)

This bundle was created in 2013 for Symfony 2, when there was no native form type for colors. It integrated the [jscolor](http://jscolor.com/) library to provide a JavaScript color picker.

With the arrival of HTML5 `` and its universal support in modern browsers, Symfony added native `ColorType` in version 5.1, making this bundle obsolete.

License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance47

Moderate activity, may be stable

Popularity30

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

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 ~74 days

Recently: every ~112 days

Total

7

Last Release

3301d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8b2aa64f88de1a5b6784b0467b50d1be49a2989771faecd340c114445b67f0f?d=identicon)[xmon\_df](/maintainers/xmon_df)

---

Top Contributors

[![xmon](https://avatars.githubusercontent.com/u/4361296?v=4)](https://github.com/xmon "xmon (24 commits)")[![benrcole](https://avatars.githubusercontent.com/u/2944207?v=4)](https://github.com/benrcole "benrcole (2 commits)")[![mmehira](https://avatars.githubusercontent.com/u/469341?v=4)](https://github.com/mmehira "mmehira (1 commits)")[![new-xmon-df](https://avatars.githubusercontent.com/u/144630403?v=4)](https://github.com/new-xmon-df "new-xmon-df (1 commits)")

---

Tags

bundleSymfony2sonata-admincolor pickerForm Typejscolor

### Embed Badge

![Health badge](/badges/xmon-color-picker-type-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xmon-color-picker-type-bundle/health.svg)](https://phpackages.com/packages/xmon-color-picker-type-bundle)
```

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91397.6M425](/packages/twig-extra-bundle)[lexik/currency-bundle

This Symfony2 bundle provide a service and a Twig extension to convert and display currencies.

58236.2k1](/packages/lexik-currency-bundle)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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