PHPackages                             maulik/filament-auto-crud - 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. maulik/filament-auto-crud

ActiveLibrary

maulik/filament-auto-crud
=========================

Automatically generate Filament resources from Laravel models and database tables

1.0.0(1y ago)04MITPHPPHP ^8.1

Since Mar 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/raval-maulik-dev/filament-auto-crud)[ Packagist](https://packagist.org/packages/maulik/filament-auto-crud)[ RSS](/packages/maulik-filament-auto-crud/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (3)Used By (0)

Filament Auto CRUD Generator
============================

[](#filament-auto-crud-generator)

This Laravel package automatically generates [Filament](https://filamentphp.com/) resources (CRUD panels) based on your existing models or database tables. It analyzes your database schema and model relationships to create fully functional Filament resources with minimal configuration.

Features
--------

[](#features)

- Automatically generate Filament resources from existing models
- Detect and configure appropriate form fields based on column types
- Handle model relationships (belongsTo, hasMany, etc.)
- Customizable field type mappings
- Support for common column types
- Exclude specific tables/models from generation
- Optional AI-powered field configuration (requires OpenAI API key)

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x or 11.x
- Filament 3.x

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

[](#installation)

```
composer require maulik/filament-auto-crud
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --provider="Maulik\FilamentAutoCrud\FilamentAutoCrudServiceProvider"
```

This will create a `config/filament-auto-crud.php` file where you can customize:

- Excluded tables/models Then, enable AI settings in the configuration file:

```
'ai' => [
    'enabled' => true,
    'model' => 'gpt-3.5-turbo',
],
```

---

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

[](#contributing)

Contributions are welcome! Please submit a Pull Request.

---

License
-------

[](#license)

This package is open-sourced software licensed under the **MIT license**.- Field type mappings

- Relationship field types
- Resource generation path
- AI integration settings (optional)

Usage
-----

[](#usage)

### Generate a Resource for a Single Model

[](#generate-a-resource-for-a-single-model)

```
php artisan filament:generate-resource User
```

Or with full namespace:

```
php artisan filament:generate-resource "App\Models\User"
```

### Generate Resources for All Models

[](#generate-resources-for-all-models)

```
php artisan filament:generate-resources
```

Options:

- `--path`: The path to look for models (default: app/Models)
- `--namespace`: The namespace of the models (default: App\\Models)

Customization
-------------

[](#customization)

### Field Type Mappings

[](#field-type-mappings)

You can customize how database column types map to Filament field types in the configuration file:

```
'field_types' => [
    'string' => 'TextInput',
    'text' => 'Textarea',
    'integer' => 'TextInput::numeric',
    'boolean' => 'Toggle',
    // ...
],
```

### Relationship Field Types

[](#relationship-field-types)

Configure how different relationship types are rendered:

```
'relationship_types' => [
    'belongsTo' => 'Select',
    'hasMany' => 'Repeater',
    'belongsToMany' => 'MultiSelect',
    // ...
],
```

### Excluding Tables/Models

[](#excluding-tablesmodels)

Specify which tables or models should be excluded from resource generation:

```
'exclude' => [
    'migrations',
    'password_resets',
    'failed_jobs',
    // ...
],
```

AI Integration (Optional)
-------------------------

[](#ai-integration-optional)

Enable AI-powered features by setting your OpenAI API key in your `.env` file:

```
OPENAI_API_KEY=your-api-key

```

Then enable AI integration in the configuration:

```
'ai' => [
    'enabled' => true,
    'model' => 'gpt-3.5-turbo',
],
```

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

[](#contributing-1)

Contributions are welcome! Please feel free to submit a Pull Request.

License
-------

[](#license-1)

This package is open-sourced software licensed under the MIT license.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance46

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

420d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dd850def5fbf072c24fadacea3ee4e5560398ceb3d634ed760107b59f28cb67?d=identicon)[raval-maulik-dev](/maintainers/raval-maulik-dev)

---

Top Contributors

[![raval-maulik-dev](https://avatars.githubusercontent.com/u/103125363?v=4)](https://github.com/raval-maulik-dev "raval-maulik-dev (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maulik-filament-auto-crud/health.svg)

```
[![Health](https://phpackages.com/badges/maulik-filament-auto-crud/health.svg)](https://phpackages.com/packages/maulik-filament-auto-crud)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[kirschbaum-development/commentions

A package to allow you to create comments, tag users and more

12369.2k](/packages/kirschbaum-development-commentions)[masterro/laravel-mail-viewer

Easily view in browser outgoing emails.

6392.1k](/packages/masterro-laravel-mail-viewer)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

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