Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/laravel-validation-rules/colour
Validate colours.
https://github.com/laravel-validation-rules/colour
color colour css hex laravel validation
Last synced: 3 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-23T18:12:50.000Z (8 months ago)
- Last Synced: 2024-04-24T23:01:09.158Z (7 months ago)
- Topics: color, colour, css, hex, laravel, validation
- Language: PHP
- Size: 129 KB
- Stars: 34
- Watchers: 3
- Forks: 13
- Open Issues: 4
-
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],
]);
```