Download the PHP package paulobunga/parkman-schema without Composer
On this page you can find all versions of the php package paulobunga/parkman-schema. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download paulobunga/parkman-schema
More information about paulobunga/parkman-schema
Files in paulobunga/parkman-schema
Package parkman-schema
Short Description Generate Laravel model and migrations from Prisma Schema
License MIT
Homepage https://github.com/paulobunga/parkman-schema
Informations about the package parkman-schema
Parkman Schema: Prisma to Laravel Migration Generator
Parkman Schema is a powerful Laravel package that generates Laravel migrations and models from Prisma schema files. It simplifies the process of transitioning from Prisma to Laravel by automatically creating the necessary database structure and Eloquent models.
Installation
You can install the package via composer:
Usage
Generate Migrations
To generate Laravel migrations from your Prisma schema:
This will create migration files in your Laravel project's database/migrations directory.
Generate Models
To generate Eloquent models from your Prisma schema:
This will create model files in your Laravel project's app/Models directory.
Using Artisan Commands
The package also provides Artisan commands for easy use:
Customizing Stubs
You can publish the stub files to customize the generated migrations and models:
This will copy the stub files to resources/stubs/vendor/parkman-schema in your Laravel project, where you can modify them to fit your needs.
Features
- Generates Laravel migrations from Prisma schema
- Creates Eloquent models with relationships
- Supports table creation, modification, and deletion
- Handles column additions, removals, and renames
- Manages foreign key constraints
- Automatically reorders migrations based on dependencies
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Paul Obunga
- All Contributors
License
The MIT License (MIT). Please see License File for more information.