1. Go to this page and download the library: Download kak/colorpicker library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?phprequire_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kak / colorpicker example snippets
<?= $form->field($model, 'color')->widget(InputColor::class, [
'clientOptions' => [], // js options lib pickr 'theme' => InputColor::THEME_MONOLITH, // default theme'addonPreview' => true, // displays a preview of the color next to the {input}// 'addonPreview' => false, // displays the {input} preview in the background and inverts the text color
]);