Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Color Picker Bundle

Color Picker Bundle Laravel Package

kunicmarko/color-picker-bundle

A small Symfony bundle that adds a color picker form type to Symfony forms, making it easy to render color input fields with minimal setup. Lightweight and simple to integrate, but with very low adoption and few stars, so check maintenance and compatibility before relying on it.

View on GitHub
Deep Wiki
Context7

kunicmarko/color-picker-bundle is a Symfony bundle that adds a ready-to-use color picker form type for collecting color values in your forms. It wraps the picker widget in a simple form field, letting you drop color selection into Symfony forms without custom JavaScript wiring.

  • Provides a reusable ColorPickerType form field
  • Integrates picker assets with Symfony’s asset system
  • Supports configurable picker options
  • Works with standard Symfony form rendering and validation
  • Lightweight setup for quickly adding color inputs
Frequently asked questions about Color Picker Bundle
Can I install kunicmarko/color-picker-bundle in a Laravel application?
No, not in any meaningful way. Composer may resolve the package, but Laravel has no Symfony Form component, no bundle registration mechanism, and no Twig form theme layer by default. The form type resolution and widget rendering have no Laravel counterpart, so architectural fit is effectively zero.
What does kunicmarko/color-picker-bundle actually do?
It is a Symfony bundle that registers a ColorPickerType against the Symfony Form component. It renders an input with a client-side JavaScript color picker attached so users can choose a color instead of typing a hex value. The PHP package is a thin convenience wrapper around the JavaScript widget.
Is kunicmarko/color-picker-bundle still maintained?
No. The repository has been archived since 2017, with no upstream fixes, no security response, and no compatibility maintenance. Adoption means fork-and-own, and there is no downstream evidence of production use. It has four stars, zero dependents, and a very low ecosystem score.
Which Symfony versions does the color picker bundle support?
It was written against the Symfony 3.x and 4.0 era. Modern Symfony 6 and 7 require PHP 8.1+, changed bundle registration conventions, and use Encore or AssetMapper for asset handling. The Composer constraints almost certainly conflict with current stacks, so check composer.json before considering a fork.
How do I add a color picker to a Laravel form without this package?
Reimplement the capability natively rather than depending on the abandoned Symfony bundle. Use a Blade component that renders input type color with the old value, add a validation rule using regex for hex colors, and canonicalize the stored value with a model cast or accessor. The work is small and can be completed in one to two days including tests.
What validation should I use for hex color input in Laravel?
Validate with a regex such as /^#[0-9A-Fa-f]{6}$/ and normalize accepted values to lowercase #rrggbb. Do not trust client input, because unvalidated color fields are a data-integrity and stored-XSS vector depending on where the value is rendered. A dedicated Rule object or regex validation rule keeps the check reusable.
Does kunicmarko/color-picker-bundle support Laravel 10 or Laravel 11?
No. The package is a Symfony bundle and does not target Laravel at all. Laravel 10 and 11 use service providers, Blade, and Laravel validation rather than Symfony bundles and form types. For Laravel, use the native HTML5 color input approach instead.
What are alternatives to kunicmarko/color-picker-bundle for Laravel?
Use the native HTML5 input type color for a simple, dependency-free picker. If a richer UI is required, add a maintained JavaScript library such as Pickr or Spectrum through Vite so the team can track and upgrade it. Avoid a dead PHP wrapper when the durable value lives in the JavaScript library.
Does the color picker bundle have a no-JS fallback?
The bundle relies on a client-side JavaScript widget, and a plain text fallback is not documented in the package context. Without a no-JS fallback, the field becomes unusable when JavaScript fails or when a Content Security Policy blocks it. A native text input with pattern validation is a safer fallback.
Is it safe to use kunicmarko/color-picker-bundle in production?
Technical risk is high because the package is archived, has no security response, and has no demonstrated production adoption. For Laravel the answer is to reject it and implement the capability natively. For Symfony it is viable only through a maintained fork, with an audit of the bundled JavaScript dependency and server-side hex validation.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager