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

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

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

A form component for Filamentphp allowing actions inside of forms.

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

Since Feb 7Pushed 1mo 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 1mo ago

READMEChangelog (4)Dependencies (12)Versions (6)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

44

—

FairBetter than 92% of packages

Maintenance60

Regular maintenance activity

Popularity44

Moderate usage in the ecosystem

Community15

Small or concentrated contributor base

Maturity44

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

1102d 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] (19 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] (12 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

[guava/calendar

Adds support for vkurko/calendar to Filament PHP.

298241.0k3](/packages/guava-calendar)[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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