iamgeor.ge/schema-generator
Composer 安装命令:
composer require iamgeor.ge/schema-generator
包简介
A Laravel package for generating database schemas, models, and migrations through a Filament admin panel
README 文档
README
A powerful Laravel package that provides a full-featured schema management system built on top of the Filament admin panel. It enables you to create, configure, and manage database schemas through an intuitive CRUD interface, then automatically generate corresponding migrations, models, and related files.
Key Benefits
- Filament-powered UI: Leverages the beautiful and responsive Filament admin panel
- Complete CRUD operations: Create, read, update, and delete schema definitions through the UI
- Code generation: Automatically generate models, migrations, and more
- Seamless integration: Works with your existing Laravel and Filament setup
Requirements
- PHP 8.2 or higher
- Laravel 11.0 or higher
- Filament 3.2 or higher
Installation
You can install the package via composer:
composer require iamgeor.ge/schema-generator
After installing the package, run the installation command:
php artisan schema:install
This will:
- Publish the configuration file
- Run migrations
- Set up the Filament panel
Usage
After installation, you can access the schema generator through the Filament admin panel at /schema.
CRUD Operations
The package provides a full Filament-powered CRUD interface for managing your database schemas:
- Create: Define new schemas with table name, model name, and fields
- Read: View all your defined schemas in a searchable, filterable table
- Update: Modify existing schemas, add/remove fields, adjust options
- Delete: Remove schemas that are no longer needed
Schema Generation
For each schema, you can:
- Define the table structure (fields, types, constraints)
- Configure model options (fillable, casts, relationships)
- Generate migrations and models with a single click
- Preview the generated code before saving
Integration with Your Application
The generated code is automatically placed in your application's appropriate directories:
- Migrations in
database/migrations/ - Models in
app/Models/(configurable)
Screenshot
The Schema Generator interface showing the full-featured UI with all tabs and components.
Features
- Filament Admin Panel Integration: Built directly on Filament 3.x for a polished admin experience
- Complete CRUD Operations: Full interface for creating, reading, updating, and deleting schemas
- Advanced Schema Definition: Define columns with types, constraints, relationships, and more
- Code Generation:
- Database migrations
- Eloquent models with proper attributes
- Support for relationships
- Timestamps, soft deletes, and other Laravel features
- Customization: Configure paths, namespaces, and generation options
- Developer Experience: Intuitive UI with instant feedback and code previews
- Extensibility: Built to be extended with custom generators and features
Configuration
The package publishes a configuration file that allows you to customize various aspects of code generation:
php artisan vendor:publish --tag="schema"
Configuration options:
return [ // Path where the Filament panel will be accessible 'path' => 'schema', // Generation paths 'paths' => [ 'models' => app_path('Models'), 'migrations' => database_path('migrations'), ], // Default generation options 'generation' => [ 'timestamps' => true, 'soft_deletes' => false, 'fillable' => true, 'namespace' => 'App\\Models', ], ];
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
iamgeor.ge/schema-generator 适用场景与选型建议
iamgeor.ge/schema-generator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 19 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 04 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 iamgeor.ge/schema-generator 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 iamgeor.ge/schema-generator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-04-03
