PHP code example of magepal / magento2-color-picker

1. Go to this page and download the library: Download magepal/magento2-color-picker 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/ */

    

magepal / magento2-color-picker example snippets

xml
<field id="color_picker" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
    <label>Color Picker</label>
    <frontend_model>MagePal\ColorPicker\Model\Config\Source\ColorPicker</frontend_model>
</field>