mehedi8gb / api-crudify
Automate CRUD operations for Laravel APIs.
Requires
- php: ^8.2
- andreaselia/laravel-api-to-postman: ^2.1.0
- cviebrock/eloquent-sluggable: ^12.0.0
- laravel/framework: 12.*
- spatie/laravel-package-tools: ^1.16.4
- dev-main
- v3.0.2
- 2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.1.91
- v1.1.72
- v1.1.71
- v1.1.70
- v1.1.60
- v1.1.53
- v1.1.52
- v1.1.51
- v1.1.9
- v1.1.6
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.2
- v1.1.0
- 1.0.0
- dev-main_add-support-Laravel-v11
- dev-main_add-support-Laravel-v10
- dev-mehedi8gb-update-composer.json
- dev-mehedi8gb-patch-2
- dev-mehedi8gb-patch-1
- dev-master
This package is auto-updated.
Last update: 2025-03-20 02:44:52 UTC
README
Overview
Package Name: Api CRUDify
Description:
Api CRUDify is a powerful Laravel package designed to simplify the process of creating CRUD (Create, Read, Update, Delete) operations in your Laravel applications. With Api CRUDify, you can quickly generate API controllers, models, form request classes, migrations, and more, allowing you to focus on building your application's core functionality instead of writing repetitive boilerplate code.
Key Features
-
Effortless CRUD Generation: Create fully functional CRUD components with a single Artisan command, reducing development time and effort.
-
Customizable Templates: Api CRUDify provides customizable stub templates, enabling you to tailor generated code to your project's specific needs.
-
Model-Controller-Route Integration: Automatically generates API routes for your controllers, ensuring seamless integration with your Laravel application.
-
Form Request Validation: Simplify input validation by automatically generating form request classes for store and update operations.
-
Resourceful Output: Generate resource and resource collection classes, making it easy to transform and format your data for API responses.
-
Database Migration: Automatically create database migration files for your models, helping you define your database schema effortlessly.
-
Factory Integration: Easily integrate model factories into your application's seeders for realistic data seeding.
-
Laravel Best Practices: Api CRUDify follows Laravel's best practices and coding standards, ensuring code quality and maintainability.
Installation
Install Api CRUDify in your Laravel project using Composer:
composer require mehedi8gb/api-crudify --dev
Usages
To use Api CRUDify, run the following Artisan command:
php artisan crudify:make YourControllerName
To export api schema for postman, run the following Artisan command:
php artisan crudify:make YourControllerName --export-api-schema
After running the command, Api CRUDify will generate the following files:
- Controller:
app/Http/Controllers/YourControllerNameController.php
- Model:
app/Models/YourControllerName.php
- Form Request:
app/Http/Requests/YourControllerNameStoreRequest.php
- Form Request:
app/Http/Requests/YourControllerNameUpdateRequest.php
- Resource:
app/Http/Resources/YourControllerNameResource.php
- Resource Collection:
app/Http/Resources/YourControllerNameResourceCollection.php
- Migration:
database/migrations/2021_01_01_000000_create_your_controller_names_table.php
- Factory:
database/factories/YourControllerNameFactory.php
- Seeder:
database/seeders/YourControllerNameSeeder.php
- Route:
routes/api.php
Now you can run the following command to migrate your database:
php artisan migrate --seed
Features
your request will be passed with end to end validation, encryption, and authentication. You can also export the api schema for postman and many more.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.