PHPackages                             colymba/silverstripe-colorfield - 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. colymba/silverstripe-colorfield

ActiveSilverstripe-module

colymba/silverstripe-colorfield
===============================

SilverStripe 3 Color picker and DBField field with attitude.

v1.1(9y ago)44.2k11[1 issues](https://github.com/colymba/silverstripe-colorfield/issues)[1 PRs](https://github.com/colymba/silverstripe-colorfield/pulls)1BSD SimplifiedPHPCI failing

Since Oct 1Pushed 6y ago3 watchersCompare

[ Source](https://github.com/colymba/silverstripe-colorfield)[ Packagist](https://packagist.org/packages/colymba/silverstripe-colorfield)[ RSS](/packages/colymba-silverstripe-colorfield/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (1)

⚠️ I haven't been able to give as much love as I would like to these repos as they deserve. If you have time and are interested to help maintain them, give me a shout. 🚨

SilverStripe COLOR FIELD
========================

[](#silverstripe-color-field)

Color picker and DBField field with attitude.

ColorField
==========

[](#colorfield)

The `ColorField` form field implementing a color picker with extra input methods. Using [jQuery MiniColors](https://github.com/claviska/jquery-minicolors).

[![preview](screenshots/preview.png)](screenshots/preview.png)[![preview](screenshots/preview_2.png)](screenshots/preview_2.png)

Color
=====

[](#color)

The `Color` DBField for storing and manipulating colors.

- `$color->RGB()`, `$color->Hex()`, `$color->Alpha()`
- `Color::hex_to_rgb($hex)`, `Color::rgb_to_hex($r, $g, $b)`
- `$Color.R`, `$Color.G`, `$Color.B`, `$Color.Alpha`, `$Color.Hex`

Requirements
------------

[](#requirements)

- Silverstripe 3+

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

[](#installation)

### Composer

[](#composer)

- `composer require "colymba/silverstripe-colorfield:*"`

### Manual

[](#manual)

- Download and copy module in SilverStripe root directory

#### @TODO

[](#todo)

- HSL/HSB/CMYK/RGB/HEX convertions
- HSL/HSB filed input

License (BSD Simplified)
------------------------

[](#license-bsd-simplified)

Copyright (c) 2013, Thierry Francois (colymba)

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- Neither the name of Thierry Francois, colymba nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% 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 ~165 days

Total

4

Last Release

3381d ago

Major Versions

v0.2 → v1.02017-02-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/d74dedada8b589d5805b3a192e308c4b501ae43a9b3df12745ec2fb32f228fa8?d=identicon)[colymba](/maintainers/colymba)

---

Top Contributors

[![colymba](https://avatars.githubusercontent.com/u/978040?v=4)](https://github.com/colymba "colymba (17 commits)")[![thezenmonkey](https://avatars.githubusercontent.com/u/1685217?v=4)](https://github.com/thezenmonkey "thezenmonkey (2 commits)")[![axyr](https://avatars.githubusercontent.com/u/345155?v=4)](https://github.com/axyr "axyr (1 commits)")[![DrMartinGonzo](https://avatars.githubusercontent.com/u/11061711?v=4)](https://github.com/DrMartinGonzo "DrMartinGonzo (1 commits)")[![nedmas](https://avatars.githubusercontent.com/u/842280?v=4)](https://github.com/nedmas "nedmas (1 commits)")

---

Tags

color-pickercolorfieldcolourdbfieldsilverstripesilverstripecolorcolor pickercolourdbfieldcolour field

### Embed Badge

![Health badge](/badges/colymba-silverstripe-colorfield/health.svg)

```
[![Health](https://phpackages.com/badges/colymba-silverstripe-colorfield/health.svg)](https://phpackages.com/packages/colymba-silverstripe-colorfield)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

5163.4M1.3k](/packages/silverstripe-cms)[tractorcow/silverstripe-colorpicker

Color picker field for Silverstripe CMS using the ColorPicker jQuery plugin

18250.8k13](/packages/tractorcow-silverstripe-colorpicker)[symbiote/silverstripe-multivaluefield

A DB field + form fields for storing multiple values in a single property (serialized).

47434.1k56](/packages/symbiote-silverstripe-multivaluefield)[tecnickcom/tc-lib-color

PHP library to manipulate various color representations

247.2M9](/packages/tecnickcom-tc-lib-color)[silverstripe/admin

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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