PHPackages                             andrewdwallo/filament-selectify - 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. andrewdwallo/filament-selectify

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

andrewdwallo/filament-selectify
===============================

This is my package filament-selectify

v3.0.0(10mo ago)4789.0k↓33.7%10[4 PRs](https://github.com/andrewdwallo/filament-selectify/pulls)MITBladePHP ^8.2CI passing

Since Jul 1Pushed 1w ago3 watchersCompare

[ Source](https://github.com/andrewdwallo/filament-selectify)[ Packagist](https://packagist.org/packages/andrewdwallo/filament-selectify)[ Docs](https://github.com/andrewdwallo/filament-selectify)[ RSS](/packages/andrewdwallo-filament-selectify/feed)WikiDiscussions 3.x Synced 2d ago

READMEChangelog (10)Dependencies (8)Versions (20)Used By (0)

Filament Selectify
==================

[](#filament-selectify)

A small package featuring two simple components that serve as excellent alternatives to toggles, radio buttons, and other selectors. These components not only offer seamless user interactions but also maintain UI consistency by effortlessly aligning with neighboring fields and components.

[![ButtonGroup2](https://private-user-images.githubusercontent.com/104294090/250219723-053194af-cc0f-471d-ab0d-c4b6753c49ae.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjE5NzIzLTA1MzE5NGFmLWNjMGYtNDcxZC1hYjBkLWM0YjY3NTNjNDlhZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0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nM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.jRdqGPWN0sjILdx6KiiFiBJ88pa1D97SosVOuiXRK8s)[![ToggleButton](https://private-user-images.githubusercontent.com/104294090/250219535-08f7439c-c20d-4d1b-b105-a71d08cc5c94.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjE5NTM1LTA4Zjc0MzljLWMyMGQtNGQxYi1iMTA1LWE3MWQwOGNjNWM5NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQwOTA1MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNWVhMjNkNjJhM2VlNzNkOTE1ZGUyYjhjZDY3MzMyOTZlMmVjMTc3ZTc5YWNlYzc4NTQ0YmIxYjgwNTkzYjdhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.S2qo4ZNEPzsks3FJmrQt8tDWtXrhndvSZHTl-l6RxOk)](https://private-user-images.githubusercontent.com/104294090/250219535-08f7439c-c20d-4d1b-b105-a71d08cc5c94.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjE5NTM1LTA4Zjc0MzljLWMyMGQtNGQxYi1iMTA1LWE3MWQwOGNjNWM5NC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQwOTA1MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zNWVhMjNkNjJhM2VlNzNkOTE1ZGUyYjhjZDY3MzMyOTZlMmVjMTc3ZTc5YWNlYzc4NTQ0YmIxYjgwNTkzYjdhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.S2qo4ZNEPzsks3FJmrQt8tDWtXrhndvSZHTl-l6RxOk)

 [ ![FILAMENT 4.x](https://camo.githubusercontent.com/13befbe0cffd101b2484ce1cdd985dabcddcbf1176d17a675674d53af99cfdbc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f46494c414d454e542d342e782d4542423330343f7374796c653d666f722d7468652d6261646765) ](https://filamentphp.com) [ ![Packagist](https://camo.githubusercontent.com/23ce033685a685562e94abff11a92e587574ce3fd0287eb25dd2a638d6f9062c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e647265776477616c6c6f2f66696c616d656e742d73656c6563746966792e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7061636b6167697374) ](https://packagist.org/packages/andrewdwallo/filament-selectify) [ ![Downloads](https://camo.githubusercontent.com/cb65154f2bb9358f361d7ff15565bad3657f60f046632dd9c14e1de8c655e438/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265776477616c6c6f2f66696c616d656e742d73656c6563746966793f636f6c6f723d726564267374796c653d666f722d7468652d6261646765) ](https://packagist.org/packages/andrewdwallo/filament-selectify)

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

[](#installation)

You can install the package via composer:

```
composer require andrewdwallo/filament-selectify
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-selectify-views"
```

Registering Styles
------------------

[](#registering-styles)

In order for the component's styles to be processed, you must add this package's vendor directory into your panels custom `theme.css` file. You can see how to create a Filament PHP custom theme [here](https://filamentphp.com/docs/admin/themes#custom-themes).

```
@source '../../../../vendor/andrewdwallo/filament-selectify/resources/views';
```

Usage
-----

[](#usage)

### ToggleButton

[](#togglebutton)

The ToggleButton has the following options. The `onLabel()` and `offLabel()` represent the true and false states. You may also customize the color representing each state using `onColor()` and `offColor()`.

```
ToggleButton::make('enabled')
    ->offColor('danger')
    ->onColor('primary')
    ->offLabel('No')
    ->onLabel('Yes')
    ->default(true),
```

[![Screenshot 2023-06-30 225445](https://private-user-images.githubusercontent.com/104294090/250222859-dc934b61-ecb4-485e-a4d8-9e46ba357d55.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjIyODU5LWRjOTM0YjYxLWVjYjQtNDg1ZS1hNGQ4LTllNDZiYTM1N2Q1NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQwO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

[](#buttongroup)

The ButtonGroup has the following options. You may customize the color representing each state. The `onColor()` represents the button or value that is selected and the `offColor()` represents the button or value that is not selected. You may use `gridDirection()` to change the layout of the buttons. The options are `column` and `row`. The default is `column`. You may optionally add icons for the buttons using `icons()` and supplying an array that contains the option values as keys and icon names as values. Icon position and size can be changed using `iconPosition()` (default: before) and `iconSize()` (default: Small).

```
ButtonGroup::make('entity')
    ->options([
        'individual' => 'Individual',
        'company' => 'Company',
    ])
    ->onColor('primary')
    ->offColor('gray')
    ->gridDirection('row')
    ->default('individual')
    ->icons([
        'individual' => 'heroicon-m-user',
        'company' => 'heroicon-m-building-office',
    ])
    ->iconPosition(\Filament\Support\Enums\IconPosition::After)
    ->iconSize(Filament\Support\Enums\IconSize::Medium),
```

[![Screenshot 2023-06-30 224052](https://private-user-images.githubusercontent.com/104294090/250222263-b04bf9ce-197a-4ea1-aa75-4fefa07c7f77.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjIyMjYzLWIwNGJmOWNlLTE5N2EtNGVhMS1hYTc1LTRmZWZhMDdjN2Y3Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQwOTA1MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTk2YjcxZWJjZTMwZjU3MTRlOTVlMWM3MjQzMDNmOGEwODA3MWZkODZmNTEyOTQyYmNlOGM1YTg1MmFiM2I3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.jcHKgCQd99jw2UmM-g7FlrxiKi0FoL_3SCJlpcvJd9c)](https://private-user-images.githubusercontent.com/104294090/250222263-b04bf9ce-197a-4ea1-aa75-4fefa07c7f77.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI5ODM0MjQsIm5iZiI6MTc4Mjk4MzEyNCwicGF0aCI6Ii8xMDQyOTQwOTAvMjUwMjIyMjYzLWIwNGJmOWNlLTE5N2EtNGVhMS1hYTc1LTRmZWZhMDdjN2Y3Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzAyJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcwMlQwOTA1MjRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTk2YjcxZWJjZTMwZjU3MTRlOTVlMWM3MjQzMDNmOGEwODA3MWZkODZmNTEyOTQyYmNlOGM1YTg1MmFiM2I3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.jcHKgCQd99jw2UmM-g7FlrxiKi0FoL_3SCJlpcvJd9c)

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Andrew Wallo](https://github.com/andrewdwallo)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance78

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 63.2% 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.

###  Release Activity

Cadence

Every ~66 days

Recently: every ~141 days

Total

15

Last Release

172d ago

Major Versions

v1.0.1 → v2.0.02023-08-04

2.x-dev → v3.0.02025-08-21

PHP version history (3 changes)v1.0.0PHP ^8.0

v1.0.1PHP ^8.1

v3.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![andrewdwallo](https://avatars.githubusercontent.com/u/104294090?v=4)](https://github.com/andrewdwallo "andrewdwallo (43 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (5 commits)")[![daikazu](https://avatars.githubusercontent.com/u/4039367?v=4)](https://github.com/daikazu "daikazu (5 commits)")[![josefbehr](https://avatars.githubusercontent.com/u/4368880?v=4)](https://github.com/josefbehr "josefbehr (4 commits)")[![martin-ro](https://avatars.githubusercontent.com/u/10107779?v=4)](https://github.com/martin-ro "martin-ro (1 commits)")[![ronfuller](https://avatars.githubusercontent.com/u/9759221?v=4)](https://github.com/ronfuller "ronfuller (1 commits)")

---

Tags

laravelandrewdwallofilament-selectify

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/andrewdwallo-filament-selectify/health.svg)

```
[![Health](https://phpackages.com/badges/andrewdwallo-filament-selectify/health.svg)](https://phpackages.com/packages/andrewdwallo-filament-selectify)
```

###  Alternatives

[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[awcodes/richer-editor

A collection of extensions and tools to enhance the Filament Rich Editor field.

3912.9k9](/packages/awcodes-richer-editor)[rawilk/filament-password-input

Enhanced password input component for filament.

52263.4k14](/packages/rawilk-filament-password-input)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

34226.4k13](/packages/schmeits-filament-character-counter)[biostate/filament-menu-builder

An Elegant Menu Builder for FilamentPHP

6528.1k2](/packages/biostate-filament-menu-builder)

PHPackages © 2026

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