PHPackages                             elcheco/sortable-pillbox - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. elcheco/sortable-pillbox

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

elcheco/sortable-pillbox
========================

A searchable pillbox Livewire component with drag-and-drop sortable pills

03↓87.5%Blade

Since Apr 3Pushed 3mo agoCompare

[ Source](https://github.com/elcheco/sortable-pillbox)[ Packagist](https://packagist.org/packages/elcheco/sortable-pillbox)[ RSS](/packages/elcheco-sortable-pillbox/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sortable Pillbox
================

[](#sortable-pillbox)

A Laravel Livewire component that provides a searchable pillbox UI with drag-and-drop sortable pills, powered by [SortableJS](https://sortablejs.github.io/Sortable/).

Requirements
------------

[](#requirements)

- PHP 8.3+
- Laravel 12 or 13
- Livewire 4+
- Tailwind CSS (for default styling)

Installation
------------

[](#installation)

```
composer require elcheco/sortable-pillbox
```

The service provider is auto-discovered by Laravel.

Setup
-----

[](#setup)

Add `@stack('scripts')` to your layout (before ``) if you don't have it already — SortableJS is loaded via this stack.

Usage
-----

[](#usage)

In your parent Livewire component, define the options and selected values:

```
public array $options = [
    'name' => 'Name',
    'email' => 'Email',
    'phone' => 'Phone',
    'address' => 'Address',
];

public array $selected = ['name', 'email'];
```

Then use the component in your Blade view:

```

```

The `selected` array is two-way bound via `wire:model` and reflects the current order of pills.

Publishing Views
----------------

[](#publishing-views)

To customize the Blade template:

```
php artisan vendor:publish --tag=sortable-pillbox-views
```

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance55

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9887fa227e7985a2e5b6098c1a8305f7dab78b384dcdb094df4fe28cdede84a?d=identicon)[elcheco](/maintainers/elcheco)

---

Top Contributors

[![elcheco](https://avatars.githubusercontent.com/u/1447985?v=4)](https://github.com/elcheco "elcheco (1 commits)")

### Embed Badge

![Health badge](/badges/elcheco-sortable-pillbox/health.svg)

```
[![Health](https://phpackages.com/badges/elcheco-sortable-pillbox/health.svg)](https://phpackages.com/packages/elcheco-sortable-pillbox)
```

###  Alternatives

[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[kzykhys/git

A Git wrapper for PHP5.3+

17769.0k11](/packages/kzykhys-git)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
