PHPackages                             codicastudio/pill-filter - 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. codicastudio/pill-filter

ActiveLibrary

codicastudio/pill-filter
========================

A random Codica Studio package.

1.0.0(5y ago)081MITVuePHP ^7.4 || ^8.0

Since Sep 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/codicastudio/pill-filter)[ Packagist](https://packagist.org/packages/codicastudio/pill-filter)[ Docs](https://github.com/codicastudio/admindashboard-pillfilter)[ RSS](/packages/codicastudio-pill-filter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (1)

Nova Pill Filter
================

[](#nova-pill-filter)

A Laravel Nova filter that renders into clickable pills.

[![PillFilter in Action](https://raw.githubusercontent.com/dcasia/nova-pill-filter/master/screenshots/demo-1.png)](https://raw.githubusercontent.com/dcasia/nova-pill-filter/master/screenshots/demo-1.png)

Installation
============

[](#installation)

You can install the package via composer:

```
composer require digital-creative/nova-pill-filter

```

Basic Usage
-----------

[](#basic-usage)

Create a filter as usual and extend the `DigitalCreative\PillFilter\PillFilter` class

```
use DigitalCreative\PillFilter\PillFilter;

class MyFilter extends PillFilter {

    public function apply(Request $request, $query, $values)
    {
        // $values will always be an array
    }

    public function options(Request $request)
    {
        return [
           'Display Text 1' => 'value-1',
           'Display Text 2' => 'value-2'
        ];
    }

}
```

and use it as usual on the filters methods within your resource class:

```
class ExampleNovaResource extends Resource {

    public function filters(Request $request)
    {
        return [
            new MyFilter()
        ];
    }

}
```

By default multiple items can be selected, you can restrict it to a single item at time by calling `->single()`

```
class ExampleNovaResource extends Resource {

    public function filters(Request $request)
    {
        return [
            (new MyFilter())->single()
        ];
    }

}
```

Additionally you can customize the mode the filter is displayed, by default it wraps to show all pills at once, however there is also a drag mode:

[![PillFilter in Action](https://raw.githubusercontent.com/dcasia/nova-pill-filter/master/screenshots/demo-2.png)](https://raw.githubusercontent.com/dcasia/nova-pill-filter/master/screenshots/demo-2.png)

```
class ExampleNovaResource extends Resource {

    public function filters(Request $request)
    {
        return [
            (new MyFilter())->dragMode()
        ];
    }

}
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/nova-pill-filter/master/LICENSE) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2061d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a33b354bea681b74be49f37bbe9f3c4f145dbefe0f2b5cbb705b0731bf13fd3?d=identicon)[codicastudio](/maintainers/codicastudio)

### Embed Badge

![Health badge](/badges/codicastudio-pill-filter/health.svg)

```
[![Health](https://phpackages.com/badges/codicastudio-pill-filter/health.svg)](https://phpackages.com/packages/codicastudio-pill-filter)
```

PHPackages © 2026

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