Download the PHP package 0jkb/schemator without Composer
On this page you can find all versions of the php package 0jkb/schemator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download 0jkb/schemator
More information about 0jkb/schemator
Files in 0jkb/schemator
Package schemator
Short Description Schemator is an advanced Laravel package designed to streamline development workflows by automatically generating Eloquent models and optional Filament resources. It offers features like selective table generation, skipping default Laravel tables, and enhanced model generation with Laravel Sanctum support for the User model.
License MIT
Informations about the package schemator
Schemator for Laravel
Schemator is a Laravel package designed to automate the process of generating Eloquent models and Filament resources based on your database schema. It simplifies the initial setup of models in Laravel projects by auto-generating them with properties and relationships.
Features
- Automatically generates Eloquent models for each database table.
- Supports a wide array of relationships including
belongsTo
,hasMany
,hasOne
,belongsToMany
,morphOne
, andmorphMany
. - Generates Filament resources if Filament is installed, with support for various options like
--simple
,--generate
,--soft-deletes
, and--view
. - Embeds a comment in each model indicating creation by Schemator for clarity and tracking.
Requirements
- Laravel 8 or newer
- PHP 7.3 or newer
- FilamentPHP (optional for resource generation)
Installation
To install Schemator, run the following command in your Laravel project:
After installation, you can use the Artisan command provided by Schemator.
Usage :
- -f | --filament-options: Activate Filament resource generation with specific options. Accepts both shorthand (g, s, d, v, e) and full words (generate, simple, soft-deletes, view, empty). For example, -f gs or -f generate,simple.
- --skip= for specifying tables to skip.
- --skip-default as a flag to skip Laravel's default tables.
- --only= to generate models for specific tables.
Generate models only :
To generate models and empty Filament resources, run (e | empty option):
- This will create several files in the app/Filament/Resources directory with empty form and table .
To generate models and optionally Filament resources, run:
Generate Filament resources (s | simple option):
- This command will generate Filament resources for each table, applying the simple option.
Generate Filament resources (g | generate option):
Generate models and Filament resources with all options:
Skipping specific tables(--skip option):
Generating models for specific tables(--only option):
- This command will generate models only for the 'users' and 'posts' tables.
Generate models and Filament resources, skipping Laravel default tables (--skip-default option):
Contributing
Contributions to Schemator are welcome. You can contribute in various ways:
- Submitting bug reports and feature requests.
- Writing code for new features or bug fixes.
- Improving documentation.
Please feel free to fork the repository and submit pull requests.
License
Schemator is open-sourced software licensed under the MIT license.
All versions of schemator with dependencies
doctrine/dbal Version >=2.5
illuminate/support Version >=5.1
illuminate/database Version >=5.1
illuminate/contracts Version >=5.1
illuminate/filesystem Version >=5.1
illuminate/console Version >=5.1