PHP code example of ghero / laravel-dominant-color

1. Go to this page and download the library: Download ghero/laravel-dominant-color 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/ */

    

ghero / laravel-dominant-color example snippets


'providers' => [
    ...
    Ghero\DominantColor\DominantColorServiceProvider::class,
    ...    
];

'aliases' => [
    ...
    'DominantColor' => Ghero\DominantColor\Facades\DominantColor::class,
    ...    
];