spatie/color
PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000).
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| baks-dev/reference-color | 0.85 | Библиотека справочника цветов для проектов BaksDev: подключение через Composer, сервис ReferenceChoiceColor для вывода цветов в выпадающих списках (tag baks.reference.choice). Требует PHP 8.4+. Лицензия MIT. | 0 | 0 | 0 | 44 | 0 | 20.7 | — | MIT | 2 weeks ago | |
| spatie/once | 0.85 | A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. | 1,438 | 1,444 | 61 | 264K | 0 | 24.2 | 33.9 | MIT | 6 months ago | |
| mischiefcollective/colorjizz | 0.85 | ColorJizz-PHP is a lightweight color library for converting and manipulating colors across formats like RGB, CMYK, Hex, HSV, CIELab/LCh, XYZ, and Yxy. Supports chaining operations (hue, saturation, greyscale) while keeping originals immutable. | 285 | 286 | 32 | 5K | 5 | 3.9 | 19.6 | — | — | |
| ozdemirburak/iris | 0.85 | Iris is a PHP 8.1+ color library for parsing, manipulating, and converting colors across Hex/Hexa, RGB/RGBA, HSL/HSLA, HSV, CMYK, and OKLCH. Provides format classes with channel accessors and easy toX() conversions. | 120 | 122 | 21 | 44K | 0 | 21.8 | 39.7 | MIT | 3 months ago | |
| mistic100/randomcolor | 0.85 | Generate attractive random colors in PHP (port of David Merfield’s randomColor). Create single or multiple colors with options for hue, luminosity, alpha, and output formats like hex, rgb(a), hsl(a), or hsv(a). Supports custom PRNG. | 241 | 246 | 58 | 37K | 0 | 5.4 | 30.1 | MIT | 1 year ago | |
| spatie/url | 0.84 | Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. | 739 | 752 | 60 | 413K | 0 | 12.4 | 37.9 | MIT | 2 years ago | |
| jakub-onderka/php-console-color | 0.84 | Abandoned PHP library for styling console output with ANSI colors. Formerly used to print colored text in terminals (see example.php). Consider using the maintained alternative: https://github.com/php-parallel-lint/PHP-Console-Color | 6,122 | 5,930 | 24 | 365K | 2 | 26.7 | 24.6 | BSD-2-Clause | 7 years ago | |
| danmichaelo/coma | 0.83 | CoMa is a PHP color math library for converting between sRGB, XYZ and Lab color spaces and computing color difference (Delta E) metrics. Includes CIE76 and CIE94, with more planned. Suitable for matching and comparing colors. | 17 | 19 | 3 | 338 | 0 | 0.2 | 17.9 | MIT | — | |
| barthy-koeln/bash-echolorized | 0.82 | Minimal bash helper for clean, colorized CLI output in CI/CD scripts and git hooks. Source it via Composer or npm/yarn and use e_info/e_success/e_warning/e_error plus colored_output and tagged_output for readable, tagged status lines. | 2 | 2 | 0 | 0 | 0 | 0.6 | — | MIT | 4 years ago | |
| spatie/image | 0.82 | Expressive PHP image manipulation with a fluent API. Resize, crop, rotate, sharpen, adjust brightness/contrast, apply filters, set quality and orientation, and convert formats. Load, chain operations, and save to a new file or overwrite. | 1,359 | 1,381 | 137 | 2M | 0 | 35.7 | 49.7 | MIT | 2 months ago | |
| ksubileau/color-thief-php | 0.82 | Extract dominant colors and palettes from images in PHP. Color Thief PHP ports the MMCQ algorithm and works with GD, Imagick, or Gmagick. Supports JPEG, PNG, GIF, and WebP, and accepts paths, URLs, resources, objects, or binary data. | 634 | 639 | 67 | 94K | 6 | 12.9 | 32.8 | MIT | 10 months ago | |
| league/color-extractor | 0.82 | — | 1,321 | 1,341 | 157 | 127K | 6 | 13.5 | 29.8 | MIT | 3 years ago | |
| awcodes/preset-color-picker | 0.82 | — | 19 | 19 | 4 | 413 | 1 | 1.8 | 18.4 | MIT | 1 year ago | |
| happytodev/filament-tailwind-color-picker | 0.82 | Filament form field for picking colors from the Tailwind CSS palette. Provides a single Tailwind color picker component that works alongside other Filament fields and stays responsive across screen sizes. | 11 | 11 | 9 | 1 | 3 | 2.8 | 3.1 | MIT | 3 years ago | |
| spatie/string | 0.81 | Fluent string handling for PHP. Wrap strings with string() to get a chainable object with helpers like between(), case conversion, concatenation, and array-offset access for reading/updating characters. Lightweight utility by Spatie, installable via Composer. | 560 | 571 | 26 | 20K | 0 | 28.2 | 25.1 | MIT | 1 month ago | |
| awcodes/palette | 0.81 | — | 24 | 25 | 5 | 4K | 0 | 16.4 | 33.3 | MIT | 4 months ago | |
| jakub-onderka/php-console-highlighter | 0.81 | Abandoned package for syntax-highlighting PHP code in the terminal using ANSI colors. Provides a Highlighter that outputs highlighted whole-file or snippet content for CLI display. Suggested alternative: php-parallel-lint/PHP-Console-Highlighter. | 6,168 | 5,952 | 17 | 324K | 0 | 27.3 | 23.9 | MIT | 7 years ago | |
| kevinlebrun/colors.php | 0.80 | A lightweight PHP library for working with colors: parse and validate HEX/RGB/HSL, convert between formats, generate palettes, adjust brightness/saturation, and compute contrast/accessible text colors. Handy utilities for theming and UI design in PHP apps. | 342 | 359 | 37 | 86K | 3 | 3.6 | 33.8 | MIT | — | |
| carteni/highlight-bundle | 0.80 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 8 years ago | |
| jfcherng/php-color-output | 0.80 | Lightweight PHP utility to add ANSI colors and styles to CLI output. Provides named foreground/background styles, special effects (bold, underline, blink, reverse), aliases, and a simple CliColor::color() helper to format strings for terminals. | 14 | 14 | 2 | 220K | 0 | 0.4 | 55.3 | MIT | 5 years ago |
How can I help you explore Laravel packages today?