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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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,447 | 61 | 241K | 0 | 21.9 | 32.7 | MIT | 7 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. | 242 | 246 | 57 | 32K | 0 | 5.4 | 29.4 | MIT | 1 year ago | |
| ozdemirburak/iris | 0.84 | 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. | 122 | 122 | 21 | 55K | 0 | 19.0 | 40.5 | MIT | 5 months 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. | 741 | 754 | 60 | 458K | 0 | 12.4 | 38.6 | MIT | 2 years ago | |
| baks-dev/reference-color | 0.84 | Библиотека справочника цветов для проектов BaksDev: подключение через Composer, сервис ReferenceChoiceColor для вывода цветов в выпадающих списках (tag baks.reference.choice). Требует PHP 8.4+. Лицензия MIT. | 0 | 0 | 0 | 42 | 0 | 18.7 | 26.1 | MIT | 1 month ago | |
| mischiefcollective/colorjizz | 0.83 | 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.8 | — | — | |
| jakub-onderka/php-console-color | 0.83 | 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,116 | 5,930 | 24 | 309K | 2 | 26.7 | 23.6 | BSD-2-Clause | 7 years ago | |
| 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 | |
| danmichaelo/coma | 0.82 | 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 | 425 | 0 | 0.2 | 19.2 | MIT | — | |
| spatie/image | 0.82 | Expressive PHP image manipulation with a fluent API. Resize, crop, rotate, apply filters (greyscale, brightness, sharpen), adjust quality, and auto-orient images. Load from a path and save in place or to a new file. | 1,361 | 1,383 | 139 | 2M | 0 | 38.6 | 51.4 | MIT | 1 month ago | |
| codedungeon/php-cli-colors | 0.82 | Add ANSI color codes to PHP CLI output with simple constants. Use Color::GREEN, Color::RESET, etc. to style messages in console apps. Lightweight, zero-config, and easy to drop into any Composer-based project. | 102 | 105 | 3 | 135K | 0 | 0.6 | 43.1 | MIT | — | |
| bramus/ansi-php | 0.81 | bramus/ansi-php is a lightweight PHP library for working with ANSI escape codes in the terminal. Easily colorize and style CLI output, move the cursor, clear sections of the screen, and build richer command-line interfaces with minimal setup. | 95 | 96 | 10 | 156K | 3 | 1.6 | 45.0 | MIT | — | |
| 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 | 26.2 | 24.6 | MIT | 3 months ago | |
| awcodes/palette | 0.81 | — | 24 | 24 | 5 | 5K | 0 | 14.0 | 34.6 | MIT | 6 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,165 | 5,952 | 17 | 275K | 0 | 27.3 | 22.9 | MIT | 7 years ago | |
| awcodes/preset-color-picker | 0.81 | — | 19 | 19 | 4 | 367 | 1 | 1.8 | 17.8 | MIT | 1 year ago | |
| carteni/highlight-bundle | 0.80 | — | 0 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 9 years ago | |
| happytodev/filament-tailwind-color-picker | 0.80 | 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 | |
| beartropy/ui | 0.80 | Beartropy UI is a small Laravel UI package providing ready-made components and helpers to speed up building admin and front-end screens. Drop in common layouts, forms, and UI utilities to get a consistent look fast with minimal setup. | 3 | 3 | 0 | 217 | 0 | 28.7 | 28.1 | MIT | 3 weeks 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 | 235K | 0 | 0.4 | 55.3 | MIT | 5 years ago |
How can I help you explore Laravel packages today?