PHPackages                             rindula/luminance - 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. [Framework](/categories/framework)
4. /
5. rindula/luminance

ActiveCakephp-plugin[Framework](/categories/framework)

rindula/luminance
=================

Luminance plugin for CakePHP

v1.0.3(3y ago)07MITPHPPHP ^5.6|^7.0CI failing

Since Mar 26Pushed 3y agoCompare

[ Source](https://github.com/Rindula/cake-luminance)[ Packagist](https://packagist.org/packages/rindula/luminance)[ RSS](/packages/rindula-luminance/feed)WikiDiscussions master Synced today

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

Luminance plugin for CakePHP
============================

[](#luminance-plugin-for-cakephp)

[![Release](https://github.com/Rindula/cake-luminance/actions/workflows/release.yml/badge.svg)](https://github.com/Rindula/cake-luminance/actions/workflows/release.yml)

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

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require rindula/luminance

```

Setup
-----

[](#setup)

To activate the Plugin in CakePHP, you have to add the following to the end of `config/bootstrap.php`:

```
Plugin::load('Luminance');
```

### In a View

[](#in-a-view)

To use this Helper in a view, you have two options:

1. Add the Helper to one Controller only

add the following code to your controller:

```
public $helpers = ['Luminance'];
```

2. Add it globally to your AppView

Add the following to the initialize method of `src/View/AppView.php`:

```
$this->loadHelper('Luminance.Luminance');
```

### In a Controller

[](#in-a-controller)

Add this to the initialize function of the Controller you need the Component in, below `parent::initialize()`:

```
$this->loadComponent('Luminance.Luminance')
```

Usage
-----

[](#usage)

Once the respective setup is done you can use it like this:

### View and Controller

[](#view-and-controller)

```
$color = $this->Luminance->getContrastColor($hexColor);
```

`$color` then contains the hex color of the contrast color, which is either black (#000000) or white (#FFFFFF).

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

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

Total

4

Last Release

1402d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20195655?v=4)[Sven Nolting](/maintainers/Rindula)[@Rindula](https://github.com/Rindula)

---

Top Contributors

[![Rindula](https://avatars.githubusercontent.com/u/20195655?v=4)](https://github.com/Rindula "Rindula (19 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rindula-luminance/health.svg)

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

###  Alternatives

[cakephp/debug_kit

CakePHP Debug Kit

86314.7M170](/packages/cakephp-debug-kit)[cakephp/bake

Bake plugin for CakePHP

11212.0M199](/packages/cakephp-bake)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308954.9k25](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M43](/packages/dereuromark-cakephp-ide-helper)[cakephp/twig-view

Twig powered View for CakePHP

155.7M19](/packages/cakephp-twig-view)[dereuromark/cakephp-tinyauth

A CakePHP plugin to handle user authentication and authorization the easy way.

131240.2k13](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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