PHPackages                             silverware/colorpicker - 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. silverware/colorpicker

ActiveSilverstripe-vendormodule

silverware/colorpicker
======================

SilverWare Colorpicker Module.

1.1.0(7y ago)010.3k↓100%4[1 issues](https://github.com/praxisnetau/silverware-colorpicker/issues)[1 PRs](https://github.com/praxisnetau/silverware-colorpicker/pulls)1BSD-3-ClauseJavaScriptPHP &gt;=5.6.0

Since Apr 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/praxisnetau/silverware-colorpicker)[ Packagist](https://packagist.org/packages/silverware/colorpicker)[ Docs](https://github.com/praxisnetau/silverware-colorpicker)[ RSS](/packages/silverware-colorpicker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (8)Used By (1)

SilverWare Colorpicker Module
=============================

[](#silverware-colorpicker-module)

[![Latest Stable Version](https://camo.githubusercontent.com/9f30dad26e9bcefdbfd0b105cff93bbc622dde8629d1d8032118aa9bd30bfe8f/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f636f6c6f727069636b65722f762f737461626c65)](https://packagist.org/packages/silverware/colorpicker)[![Latest Unstable Version](https://camo.githubusercontent.com/3f8ae85274afac98463cdd326d748e963e9886880c18dbf7cdf7e65169a1509d/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f636f6c6f727069636b65722f762f756e737461626c65)](https://packagist.org/packages/silverware/colorpicker)[![License](https://camo.githubusercontent.com/be3bfa35dc870b696a7a4af635c4eeec5618120fa4d82db0883a03a463cf8ca3/68747470733a2f2f706f7365722e707567782e6f72672f73696c766572776172652f636f6c6f727069636b65722f6c6963656e7365)](https://packagist.org/packages/silverware/colorpicker)

Provides a new form field and database field type for choosing a color via a colorpicker. Intended to be used with [SilverWare](https://github.com/praxisnetau/silverware), however this module can also be installed into a regular [SilverStripe v4](https://github.com/silverstripe/silverstripe-framework) project.

Contents
--------

[](#contents)

- [Requirements](#requirements)
- [Installation](#installation)
- [Configuration](#configuration)
- [Usage](#usage)
- [Issues](#issues)
- [To-Do](#to-do)
- [Contribution](#contribution)
- [Attribution](#attribution)
- [Maintainers](#maintainers)
- [License](#license)

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

[](#requirements)

- [SilverStripe Framework v4](https://github.com/silverstripe/silverstripe-framework)

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

[](#installation)

Installation is via [Composer](https://getcomposer.org):

```
$ composer require silverware/colorpicker

```

Configuration
-------------

[](#configuration)

As with all SilverStripe modules, configuration is via YAML. The SilverStripe dependency injector is used to configure the color field type. Extensions to `LeftAndMain` are also applied via `config.yml`.

Usage
-----

[](#usage)

### Field Type

[](#field-type)

To make use of the color field type in your code, you can reference the type in your `$db` array:

```
use SilverStripe\ORM\DataObject;

class MyObject extends DataObject
{
    private static $db = [
        'MyColor' => 'Color'
    ];
}
```

You can also `use` the field type within your class file, and reference the field type directly:

```
use SilverStripe\ORM\DataObject;
use SilverWare\Colorpicker\ORM\FieldType\DBColor;

class MyObject extends DataObject
{
    private static $db = [
        'MyColor' => DBColor::class
    ];
}
```

### Form Field

[](#form-field)

Within your `getCMSFields` method, create a `ColorField` to allow the user to choose a color:

```
ColorField::create('MyColor', $this->fieldLabel('MyColor'));
```

Don't forget to first `use` the field in the header of your class file:

```
use SilverWare\Colorpicker\Forms\ColorField;
```

Issues
------

[](#issues)

Please use the [GitHub issue tracker](https://github.com/praxisnetau/silverware-colorpicker/issues) for bug reports and feature requests.

To-Do
-----

[](#to-do)

- Tests

Contribution
------------

[](#contribution)

Your contributions are gladly welcomed to help make this project better. Please see [contributing](CONTRIBUTING.md) for more information.

Attribution
-----------

[](#attribution)

- Makes use of [Bootstrap Colorpicker](https://github.com/itsjavi/bootstrap-colorpicker) by [Javi Aguilar](https://github.com/itsjavi).

Maintainers
-----------

[](#maintainers)

[![Colin Tucker](https://avatars3.githubusercontent.com/u/1853705?s=144)](https://github.com/colintucker)[![Praxis Interactive](https://avatars2.githubusercontent.com/u/1782612?s=144)](https://www.praxis.net.au)[Colin Tucker](https://github.com/colintucker)[Praxis Interactive](https://www.praxis.net.au)License
-------

[](#license)

[BSD-3-Clause](LICENSE.md) © Praxis Interactive

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~68 days

Recently: every ~90 days

Total

7

Last Release

2888d ago

Major Versions

0.1.1 → 1.0.02017-06-15

### Community

Maintainers

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

---

Top Contributors

[![colintucker](https://avatars.githubusercontent.com/u/1853705?v=4)](https://github.com/colintucker "colintucker (16 commits)")

---

Tags

colorpickersilverstripe-4silverwaresilverstripecolorpickersilverware

### Embed Badge

![Health badge](/badges/silverware-colorpicker/health.svg)

```
[![Health](https://phpackages.com/badges/silverware-colorpicker/health.svg)](https://phpackages.com/packages/silverware-colorpicker)
```

###  Alternatives

[silverstripe/cms

The SilverStripe Content Management System

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

SilverStripe admin interface

262.6M325](/packages/silverstripe-admin)[tractorcow/silverstripe-colorpicker

Color picker field for Silverstripe CMS using the ColorPicker jQuery plugin

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

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)[silverleague/ideannotator

Generate PHP DocBlock annotations for DataObject and DataExtension databasefields and relation methods

4768.0k43](/packages/silverleague-ideannotator)[silverware/calendar

SilverWare Calendar Module.

1644.2k1](/packages/silverware-calendar)

PHPackages © 2026

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