PHP code example of ryanpotter / silverstripe-color-field
1. Go to this page and download the library: Download ryanpotter/silverstripe-color-field 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/ */
ryanpotter / silverstripe-color-field example snippets
use RyanPotter\SilverStripeColorField\Forms\ColorField;
private static $db = [
'MyColor' => DBVarchar::class . '(7)',
];
ColorField::create('MyColor')