PHPackages                             awcodes/drop-in-action - 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. awcodes/drop-in-action

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

awcodes/drop-in-action
======================

A form component for Filamentphp allowing actions inside of forms.

v0.2.2(3y ago)8658.5k↓68.7%4MITPHPPHP ^8.0CI passing

Since Feb 7Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/awcodes/drop-in-action)[ Packagist](https://packagist.org/packages/awcodes/drop-in-action)[ Docs](https://github.com/awcodes/drop-in-action)[ GitHub Sponsors](https://github.com/awcodes)[ RSS](/packages/awcodes-drop-in-action/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (12)Versions (7)Used By (0)

Drop-in Action for Filament
===========================

[](#drop-in-action-for-filament)

Warning

With the release of Filament v3 this plugin is no longer necessary. Support will be maintained for v2 projects. You can read more about ["anonymous" actions](https://filamentphp.com/docs/3.x/forms/actions#adding-anonymous-actions-to-a-form-without-attaching-them-to-a-component) on the Filament Docs.

[![Latest Version on Packagist](https://camo.githubusercontent.com/bac3202c9f4167b5714d2b383bb2afd60333151a386af929d1e5e526b90fa0a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6177636f6465732f64726f702d696e2d616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awcodes/drop-in-action)[![Total Downloads](https://camo.githubusercontent.com/9b52fad8ed24edf54c0caf6bea8f7491833ae9c777d48cc835bcf745ef0edfb0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6177636f6465732f64726f702d696e2d616374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/awcodes/drop-in-action)

[![drop-in-action](https://user-images.githubusercontent.com/3596800/217309146-b640e169-18df-4329-a2dc-f806c6cfad84.jpg)](https://user-images.githubusercontent.com/3596800/217309146-b640e169-18df-4329-a2dc-f806c6cfad84.jpg)

A form component for Filament allowing actions inside of forms.

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

[](#installation)

You can install the package via composer:

```
composer require awcodes/drop-in-action
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="drop-in-action-views"
```

Usage
-----

[](#usage)

```
use Awcodes\DropInAction\Forms\Components\DropInAction;

DropInAction::make('test')
    ->disableLabel()
    ->execute(function (Closure $get, Closure $set) {
        return Action::make('geolocate')
            ->icon('heroicon-o-search')
            ->label('Geocode')
            ->action(function () use ($get, $set) {
                try {
                    $mapsData = Http::get(config('services.google_maps.url') . '?key=' . config('services.google_maps.key') . '&address=' . $address . '&sensor=true')
                        ->throw()
                        ->json();
                } catch (RequestException $e) {
                    Filament::notify('danger', 'Unable to geocode for this address.');

                    return;
                }

                $set('latitude', $mapsData['results'][0]['geometry']['location']['lat'] ?? $get('latitude'));
                $set('longitude', $mapsData['results'][0]['geometry']['location']['lng'] ?? $get('longitude'));
          });
    }),
```

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)

- [awcodes](https://github.com/awcodes)
- [JackWH](https://github.com/JackWH)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance57

Moderate activity, may be stable

Popularity43

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~23 days

Total

5

Last Release

1148d ago

Major Versions

v0.2.0 → 3.x-dev2023-03-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3596800?v=4)[Adam Weston](/maintainers/awcodes)[@awcodes](https://github.com/awcodes)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (20 commits)")[![awcodes](https://avatars.githubusercontent.com/u/3596800?v=4)](https://github.com/awcodes "awcodes (18 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (13 commits)")[![ceejayoz](https://avatars.githubusercontent.com/u/2825?v=4)](https://github.com/ceejayoz "ceejayoz (2 commits)")[![Capevace](https://avatars.githubusercontent.com/u/10093858?v=4)](https://github.com/Capevace "Capevace (1 commits)")

---

Tags

laravelawcodesdrop-in-action

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/awcodes-drop-in-action/health.svg)

```
[![Health](https://phpackages.com/badges/awcodes-drop-in-action/health.svg)](https://phpackages.com/packages/awcodes-drop-in-action)
```

###  Alternatives

[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17760.2k3](/packages/stephenjude-filament-jetstream)[stephenjude/filament-debugger

About

104162.2k2](/packages/stephenjude-filament-debugger)[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)[croustibat/filament-jobs-monitor

Background Jobs monitoring like Horizon for all drivers for FilamentPHP

274325.8k8](/packages/croustibat-filament-jobs-monitor)[stephenjude/filament-feature-flags

Filament implementation of feature flags and segmentation with Laravel Pennant.

122177.8k1](/packages/stephenjude-filament-feature-flags)

PHPackages © 2026

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