Weave Code
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

Laravel Selectable Laravel Package

ringlesoft/laravel-selectable

Generate HTML tags from Laravel collections with a simple, flexible API. Choose label/value fields (strings or closures), set selected/disabled items, add classes/data attributes, group options, and export selectable arrays for AJAX/SPAs.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. Buy: Justifies a "build" decision for Laravel-based select dropdowns by eliminating the need for custom implementations or third-party SaaS tools, reducing long-term licensing costs.
  • Developer Experience (DX): Reduces boilerplate code for generating <select> options, accelerating feature development for forms, filters, and admin panels. Aligns with roadmap goals to improve backend maintainability.
  • API/SPA Integration: Enables seamless data serialization for AJAX responses (via toSelectItems()), supporting modern frontend architectures (React, Vue) without backend refactoring.
  • Consistency & Scalability: Standardizes dropdown generation across the codebase, reducing UI inconsistencies and easing onboarding for new engineers.
  • Use Cases:
    • Dynamic form fields (e.g., user roles, product categories).
    • Admin dashboards with filterable dropdowns.
    • Multi-select components for bulk actions.
    • API endpoints returning pre-formatted select data for SPAs.

When to Consider This Package

  • Adopt if:
    • Your Laravel app heavily relies on <select> elements (e.g., >50% of forms).
    • You’re maintaining a large codebase where consistency in dropdown generation is critical.
    • Your team prioritizes DX (e.g., IDE tooling, method chaining) over raw performance.
    • You need to support grouped options, dynamic data attributes, or non-object collections (arrays).
    • Your frontend (SPA/API) requires structured select data (e.g., for React/Vue components).
  • Look elsewhere if:
    • You’re using a non-Laravel backend (e.g., Django, Rails, Node.js).
    • Performance is critical (e.g., rendering 10K+ options); consider client-side solutions (e.g., Select2).
    • You need real-time updates (e.g., WebSockets); pair with Laravel Echo or a dedicated frontend library.
    • Your team lacks PHP/Laravel expertise; the learning curve for closures/method chaining may slow adoption.
    • You require advanced accessibility features (e.g., ARIA labels); this package focuses on HTML structure.

How to Pitch It (Stakeholders)

For Executives: "This package cuts the time to build and maintain dropdowns in our Laravel apps by 30%, reducing backend dev costs without sacrificing flexibility. It’s a lightweight, open-source alternative to proprietary tools, with MIT licensing and active maintenance. Ideal for scaling our admin panels, APIs, and forms—key to [Product X]’s roadmap."

For Engineering (Backend): *"Laravel-Selectable replaces manual <option> loops with fluent, chainable methods—think toSelectable()->withLabel()->withDisabled()—and adds IDE helpers for faster coding. Perfect for:

  • Admin panels (e.g., user roles, status filters).
  • APIs (returning toSelectItems() for SPAs).
  • Legacy codebases where dropdowns are duplicated. Zero config, works with Eloquent, arrays, or raw data. Try it on [Project Y]’s user management forms—saves 2+ hours per feature."*

For Engineering (Frontend): *"Need select data for your React/Vue app? This package generates clean JSON via toSelectItems(), so you avoid manual backend API work. Example output:

[{ "label": "Admin", "value": "1", "disabled": false }]

Works with Laravel’s collections—just pass the data to your frontend. No extra endpoints needed!"*

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.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor