https://github.com/pixelbrackets/ral-color-chart
This package provides a static list of RAL Classic Colors
https://github.com/pixelbrackets/ral-color-chart
php ral ral-color-chart
Last synced: 3 months ago
JSON representation
This package provides a static list of RAL Classic Colors
- Host: GitHub
- URL: https://github.com/pixelbrackets/ral-color-chart
- Owner: pixelbrackets
- Created: 2020-08-12T12:21:22.000Z (almost 5 years ago)
- Default Branch: development
- Last Pushed: 2024-08-13T11:42:46.000Z (10 months ago)
- Last Synced: 2025-03-06T18:29:39.908Z (3 months ago)
- Topics: php, ral, ral-color-chart
- Language: PHP
- Homepage: https://gitlab.com/pixelbrackets/ral-color-chart
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# RAL Color Chart
[](https://packagist.org/packages/pixelbrackets/ral-color-chart/)
[](https://gitlab.com/pixelbrackets/ral-color-chart/pipelines)
[](https://gitlab.com/pixelbrackets/ral-color-chart#requirements)
[](https://spdx.org/licenses/GPL-2.0-or-later.html)This package provides a static list of [RAL Classic](https://www.ral-farben.de/) Colors.
The object returns an array which contains the RAL Number, Range Index,
English Name, German Name and a compatible Hex Color Code.
## Requirements
- PHP
## Installation
Packagist Entry https://packagist.org/packages/pixelbrackets/ral-color-chart/
## Source
https://gitlab.com/pixelbrackets/ral-color-chart/
## Usage
See [tests/demo.php](./tests/demo.php)
1. Get an array with all RAL Classic Colors
```php
$colorChart = new \Pixelbrackets\RalColorChart\RalColorChart();
$colors = $colorChart->getColors();
```
Or as static method call
```php
$colors = \Pixelbrackets\RalColorChart\RalColorChart::getColors();
```
1. Get an array with all RAL Classic Ranges
```php
$ranges = \Pixelbrackets\RalColorChart\RalColorChart::getRanges();
```
1. Get an array with all RAL Classic Colors grouped by range index
```php
$groupedColors = \Pixelbrackets\RalColorChart\RalColorChart::getColorsGroupedByRange();
```
1. Get an array of a single RAL Classic Color
```php
$color = \Pixelbrackets\RalColorChart\RalColorChart::getColor('RAL 2010');
```## License
GNU General Public License version 2 or later
The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.
## Author
Dan Kleine ( / [@pixelbrackets](https://pixelbrackets.de))
## Changelog
See [./CHANGELOG.md](CHANGELOG.md)
## Contribution
This script is Open Source, so please use, patch, extend or fork it.