PHPackages                             codein/ez-color-picker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. codein/ez-color-picker

ActiveEzplatform-bundle[Utility &amp; Helpers](/categories/utility)

codein/ez-color-picker
======================

eZplatform color picker field type

2.0.0(4y ago)93.6k3MITPHPPHP ^7.1.3

Since Sep 23Pushed 4y ago4 watchersCompare

[ Source](https://github.com/Codein-Labs/ezplatform-color-picker)[ Packagist](https://packagist.org/packages/codein/ez-color-picker)[ RSS](/packages/codein-ez-color-picker/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Codein eZColorPicker
====================

[](#codein-ezcolorpicker)

Symfony bundle that adds color management to eZ Platform.

**Note** : this is the compatibility branch for eZ Platform 2.5 (ezsystems/ezpublish-kernel:7.5). For a Ibexa Platform compatible version, please check this repository instead :

Installation
------------

[](#installation)

```
composer require codein/ez-color-picker:dev-develop

```

Activate the bundle in AppKernel.php

```
new Codein\eZColorPicker\eZColorPickerBundle()

```

Compile the assets for the admin UI

```
./bin/console ezplatform:encore:compile

```

Usage
-----

[](#usage)

### Default value

[](#default-value)

You can set a default color for your field. The default color will be proposed to the user if no color is already set. If the field is required, the default color is assigned as default. If not, no color is assigned.

### Twig

[](#twig)

The default color format rendered in Twig is RGBa. You can pass extra options to ez\_render\_field.

- format: RGBa, HEXa, HSVa, RGB, HEX
- default: default value returned if field is empty. If not set ez\_render\_field will return an empty string

```
{{ ez_render_field(content, 'color2', {'parameters': {'format': 'HEX', 'default': 'none'}}) }}
```

### Migration

[](#migration)

The method \\Codein\\eZColorPicker\\FieldType\\ColorPicker\\Type::acceptValue will accept a single string and convert it into a color. Following formats are converted into a valid value object :

```
HSVa: hsva(0, 86%, 69%, 0.69)
RGBa: rgba(176, 25, 25, 0.69)
HEXa: #B01919B0
RGB: rgb(176, 25, 25)
HEX: #B01919

```

You can use this feature when writing migrations.

We also provide a color converter service for your needs [here](lib/ColorConverter/ColorConverter.php).

### Acknowledgement

[](#acknowledgement)

This bundle uses Pickr () under the MIT Licence.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.5% 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 ~96 days

Total

4

Last Release

1819d ago

Major Versions

1.0.2 → 2.0.02021-07-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/905253?v=4)[codein](/maintainers/codein)[@codein](https://github.com/codein)

---

Top Contributors

[![mrk-te](https://avatars.githubusercontent.com/u/492404?v=4)](https://github.com/mrk-te "mrk-te (41 commits)")[![axelveber](https://avatars.githubusercontent.com/u/11234843?v=4)](https://github.com/axelveber "axelveber (14 commits)")

---

Tags

back-officebackofficebundlecolor-pickercolorpickerezplatformezpublishsymfony

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/codein-ez-color-picker/health.svg)

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

###  Alternatives

[ezsystems/legacy-bridge

eZ Platform bridge to eZ Publish Legacy

17118.9k5](/packages/ezsystems-legacy-bridge)[netgen/information-collection-bundle

Information collection alike feature for Ibexa Platform

1945.8k11](/packages/netgen-information-collection-bundle)[netgen/remote-media-bundle

Remote media field type implementation

189.6k6](/packages/netgen-remote-media-bundle)

PHPackages © 2026

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