PHP code example of rindula / luminance

1. Go to this page and download the library: Download rindula/luminance library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rindula / luminance example snippets


Plugin::load('Luminance');

public $helpers = ['Luminance'];

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

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

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