Download the PHP package nikhilbhatia22/laravel-validator-color without Composer
On this page you can find all versions of the php package nikhilbhatia22/laravel-validator-color. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nikhilbhatia22/laravel-validator-color
More information about nikhilbhatia22/laravel-validator-color
Files in nikhilbhatia22/laravel-validator-color
Download nikhilbhatia22/laravel-validator-color
More information about nikhilbhatia22/laravel-validator-color
Files in nikhilbhatia22/laravel-validator-color
Vendor nikhilbhatia22
Package laravel-validator-color
Short Description Validate that a certain value is a valid CSS color string in Laravel 5 and above
License MIT
Homepage https://github.com/nikhilbhatia22/laravel-validator-color
Package laravel-validator-color
Short Description Validate that a certain value is a valid CSS color string in Laravel 5 and above
License MIT
Homepage https://github.com/nikhilbhatia22/laravel-validator-color
Please rate this library. Is it a good library?
Informations about the package laravel-validator-color
Validate colors with Laravel 5 and above
This package will let you validate that a certain value is a valid CSS color string.
Installation
Install via composer - In the terminal:
For Laravel version below 5.5, 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
Requires
illuminate/validation Version
^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
php Version ^5.5.9|^7.0|^8.0|^8.1|^8.2|^8.3
illuminate/support Version ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
php Version ^5.5.9|^7.0|^8.0|^8.1|^8.2|^8.3
The package nikhilbhatia22/laravel-validator-color contains the following files
Loading the files please wait ....