Download the PHP package tylercd100/laravel-validator-color without Composer
On this page you can find all versions of the php package tylercd100/laravel-validator-color. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tylercd100/laravel-validator-color
More information about tylercd100/laravel-validator-color
Files in tylercd100/laravel-validator-color
Download tylercd100/laravel-validator-color
More information about tylercd100/laravel-validator-color
Files in tylercd100/laravel-validator-color
Vendor tylercd100
Package laravel-validator-color
Short Description Validate that a certain value is a valid CSS color string in Laravel 5
License MIT
Homepage https://github.com/tylercd100/laravel-validator-color
Package laravel-validator-color
Short Description Validate that a certain value is a valid CSS color string in Laravel 5
License MIT
Homepage https://github.com/tylercd100/laravel-validator-color
Please rate this library. Is it a good library?
Informations about the package laravel-validator-color
Validate colors with Laravel 5
This package will let you validate that a certain value is a valid CSS color string.
Installation
Install via composer - In the terminal:
Now add the following to the providers
array in your config/app.php
Usage
// Test any color type
Validator::make(['test' => '#454ACF'], ['test' => 'color']);
// Test for rgb
Validator::make(['test' => 'rgb(0, 200, 150)'], ['test' => 'color_rgb']);
// Test for rgba
Validator::make(['test' => 'rgba(0, 200, 150, 0.52)'], ['test' => 'color_rgba']);
// Test for hex
Validator::make(['test' => '#333'], ['test' => 'color_hex']);
// Test for css color keyword
Validator::make(['test' => 'gold'], ['test' => 'color_keyword']);
All versions of laravel-validator-color with dependencies
PHP Build Version
Package Version
The package tylercd100/laravel-validator-color contains the following files
Loading the files please wait ....