PHP code example of diegonz / color-wcag2
1. Go to this page and download the library: Download diegonz/color-wcag2 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/ */
diegonz / color-wcag2 example snippets
use \Diegonz\ColorWcag2\Facades\ColorWcag2;
ColorWcag2::contrast('#5b77a0', '#fffffff');
// bool(true)
bash
php artisan color-wcag2:generate