tomatophp/filament-helpers

Helper Class Generator to manage your forms and table inside your filament app
8,182 12
Install
composer require tomatophp/filament-helpers
Latest Version:5.0.0
PHP:^8.2
License:MIT
Last Updated:Sep 15, 2026
Links: GitHub  ·  Packagist
Maintainer: fadymondy

Screenshot

Filament Helper Classes

Latest Stable Version License Downloads

Helper class generator to keep the forms, tables, actions and filters of your Filament app in their own classes.

Version Compatibility

Plugin Filament Laravel PHP
1.x 3.x 10.x / 11.x 8.1+
5.x 5.x 12.x / 13.x 8.2+

Installation

composer require tomatophp/filament-helpers

Usage

Run the command and pick the type and name; you can generate the class in app/, inside a laravel-modules module, or in any source folder, optionally inside a resource folder.

php artisan filament:helpers

Or pass everything on the command line:

# form, table, actions, filters or all
php artisan filament:helpers User all
php artisan filament:helpers User form --resource=Users
php artisan filament:helpers User table Blog                       # inside the Blog module
php artisan filament:helpers User all "" packages/accounts/src --namespace="TomatoPHP\FilamentAccounts"

Existing classes are kept unless you confirm or pass --force.

Using Generated Classes

use App\Filament\Resources\Users\Forms\UserForm;
use Filament\Schemas\Schema;

public static function form(Schema $schema): Schema
{
    return UserForm::make($schema);
}
use App\Filament\Resources\Users\Tables\UserTable;
use Filament\Tables\Table;

public static function table(Table $table): Table
{
    return UserTable::make($table);
}
use App\Filament\Resources\Users\Actions\UserActions;
use App\Filament\Resources\Users\Filters\UserFilters;

public static function table(Table $table): Table
{
    return $table
        ->recordActions(UserActions::make())
        ->filters(UserFilters::make());
}

Custom Stubs

php artisan vendor:publish --tag="filament-helpers-stubs"

Then set stub_path in config/filament-helpers.php (publish it with --tag="filament-helpers-config") to base_path('stubs/filament-helpers').

Testing

composer test

Other Filament Packages

Checkout our Awesome TomatoPHP

Related Packages

tomatophp/filament-plugins

Manage your modules as a plugin system with plugin generator

5,010 65
arcanedev/markup

PHP HTML Markup generator

444 5
genericmilk/docudoodle

Generate documentation for your Laravel application using OpenAI

48,054 162
tomatophp/filament-browser

File & Folders & Media Browser With Code Editor

9,964 42
marcogermani87/filament-cookie-consent

Easy cookie consent integrations for Filament

17,953 19

Version History

Version Released PHP License
5.0.0 ^8.2 MIT
v1.0.0 ^8.1|^8.2 MIT