PHPackages                             rheinbyte/hold-to-confirm - 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. rheinbyte/hold-to-confirm

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

rheinbyte/hold-to-confirm
=========================

Hold filament buttons to trigger an action.

371PHP

Since Aug 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rheinbyte/hold-to-confirm)[ Packagist](https://packagist.org/packages/rheinbyte/hold-to-confirm)[ RSS](/packages/rheinbyte-hold-to-confirm/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Hold to confirm to trigger a Filament Action - under development
================================================================

[](#hold-to-confirm-to-trigger-a-filament-action---under-development)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fe65fa2ee7ed82421cf2d2482c2f799c1966b1d021e81f6bf368ae0f64d0642a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726865696e627974652f686f6c642d746f2d636f6e6669726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rheinbyte/hold-to-confirm)[![GitHub Tests Action Status](https://camo.githubusercontent.com/71ca30109c23f12e94ca169ac83755bfebfdc9f8d31ddb128208268467bd7aba/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726865696e627974652f686f6c642d746f2d636f6e6669726d2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/rheinbyte/hold-to-confirm/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/25e0d795f689c00d6136ba45838d10fa86d73f5ccff9a246fa9e0ff3fd9e0491/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f726865696e627974652f686f6c642d746f2d636f6e6669726d2f6669782d7068702d636f64652d7374796c696e672e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/rheinbyte/hold-to-confirm/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/c81f33bf93a74149110c5fd4f9292ab43ddc77233861ea15d0f5211e5f1bb35b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f726865696e627974652f686f6c642d746f2d636f6e6669726d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rheinbyte/hold-to-confirm)

[![](art/hold-to-confirm.gif)](art/hold-to-confirm.gif)

Todos and problems to solve
---------------------------

[](#todos-and-problems-to-solve)

- Support link button type and groups
- Support dark mode
- Support for Alpine directives and routes
- There is room for improvement in the design and animation
- It's a bit hacky at the moment how this package hooks into the wire:click event (see hold-to-confirm.js). However, a wire:ignore is currently necessary that every listener works.

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

[](#installation)

You can install the package via composer:

```
composer require rheinbyte/hold-to-confirm
```

Usage
-----

[](#usage)

```
HoldToConfirmAction::make('do something')
    ->action(fn() => /* Doing something */)
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

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

Credits
-------

[](#credits)

- [RheinByte](https://github.com/rheinbyte)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity17

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/6ae232a37e2b883f72d740058e9ab2b86a057aaa083ad177f6be4a0b677d3be4?d=identicon)[lairg](/maintainers/lairg)

---

Top Contributors

[![lairg99](https://avatars.githubusercontent.com/u/22861666?v=4)](https://github.com/lairg99 "lairg99 (13 commits)")

### Embed Badge

![Health badge](/badges/rheinbyte-hold-to-confirm/health.svg)

```
[![Health](https://phpackages.com/badges/rheinbyte-hold-to-confirm/health.svg)](https://phpackages.com/packages/rheinbyte-hold-to-confirm)
```

###  Alternatives

[woutersioen/sir-trevor-php

A Sir Trevor to HTML conversion helper for PHP

2834.6k](/packages/woutersioen-sir-trevor-php)[naxon/laravel-url-uploaded-file

A package to leverage Laravel's UploadedFile functionality from URLs.

176.4k](/packages/naxon-laravel-url-uploaded-file)[dmitrykazak/magento-google-tag-manager

Google Tag Manager (GTM) Extension for Magento 2

112.8k](/packages/dmitrykazak-magento-google-tag-manager)

PHPackages © 2026

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