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. rindula/luminance

ActiveCakephp-plugin

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 1mo ago

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

1355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f0dcb0ea943533b7a6f419c43631c204e0df821fcbc96637807791fe576071c?d=identicon)[Rindula](/maintainers/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

[friendsofcake/cakepdf

CakePHP plugin for creating and/or rendering Pdfs, several Pdf engines supported.

3752.1M3](/packages/friendsofcake-cakepdf)[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[dereuromark/cakephp-tools

A CakePHP plugin containing lots of useful and reusable tools

338920.1k32](/packages/dereuromark-cakephp-tools)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308850.3k14](/packages/dereuromark-cakephp-queue)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1862.1M27](/packages/dereuromark-cakephp-ide-helper)[dereuromark/cakephp-tinyauth

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

129228.6k10](/packages/dereuromark-cakephp-tinyauth)

PHPackages © 2026

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