https://github.com/laravel-validation-rules/colour
Validate colours.
https://github.com/laravel-validation-rules/colour
color colour css hex laravel validation
Last synced: 21 days ago
JSON representation
Validate colours.
- Host: GitHub
- URL: https://github.com/laravel-validation-rules/colour
- Owner: laravel-validation-rules
- License: apache-2.0
- Created: 2017-09-09T19:38:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T18:12:50.000Z (over 1 year ago)
- Last Synced: 2025-06-02T15:17:44.107Z (about 1 month ago)
- Topics: color, colour, css, hex, laravel, validation
- Language: PHP
- Size: 129 KB
- Stars: 34
- Watchers: 2
- Forks: 13
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Colour
Validates colours, currently supporting hex codes only.
## Installation
```bash
composer require laravel-validation-rules/colour
```## Usage
```php
use LVR\Colour\Hex;$request->validate([
'colour' => ['required', new Hex],
]);
```