Download the PHP package zaidysf/zcrudgen without Composer
On this page you can find all versions of the php package zaidysf/zcrudgen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zaidysf/zcrudgen
More information about zaidysf/zcrudgen
Files in zaidysf/zcrudgen
Package zcrudgen
Short Description Laravel CRUD API Generator with advanced features
License MIT
Homepage https://github.com/zaidysf/zcrudgen
Informations about the package zcrudgen
ZCrudGen - Laravel CRUD API Generator
A sophisticated Laravel package that automates the creation of production-ready CRUD APIs. Built with modern Laravel practices in mind, ZCrudGen generates fully functional REST APIs following the Service Repository pattern, complete with advanced features like intelligent filtering, OpenAPI documentation, and AI-powered business logic.
🚀 Key Features
- Complete CRUD Operations: Generates index, show, create, update, and delete endpoints
- Service Repository Pattern: Follows best practices with proper separation of concerns
- Smart Schema Detection: Automatically analyzes your database structure
- Advanced Filtering: Filter by any field with support for complex queries
- Relationship Handling: Supports multiple related models (e.g., country -> province -> city)
- API Documentation: Automatic OpenAPI/Swagger documentation generation
- Authentication & Authorization: Built-in middleware and permission integration
- AI-Powered Logic: Optional AI assistance for generating business logic (powered by OpenAI)
- Highly Customizable: All generated code is placed in your project for full control
- Modern PHP: Built for PHP 8.2+ with proper type hinting and nullability
- Well-Tested: Comprehensive test suite ensuring reliability
💡 Perfect For
- Rapid API development
- Projects requiring standardized CRUD operations
- Teams looking to maintain consistent code structure
- Applications needing well-documented APIs
- Developers who value clean, maintainable code
🛠️ Built With
- Modern PHP 8.2+
- Laravel 10/11 Support
- Service Repository Pattern
- OpenAPI/Swagger Documentation
- AI Integration Capabilities
⭐ Why ZCrudGen?
- Save Time: Eliminate repetitive CRUD boilerplate code
- Best Practices: Generated code follows Laravel and PHP best practices
- Maintainable: Clean, well-documented, and easily modifiable code
- Future-Proof: Built with modern PHP features and practices
- Flexible: Works with existing projects and can be customized to your needs
ZCrudGen Documentation
Table of Contents
- Requirements
- Dependencies
- Installation
- Configuration
- Basic Usage
- Advanced Features
- AI Integration
- OpenAPI/Swagger
- Testing
- Contributing
Requirements
- PHP 8.2 or higher
- Laravel 10.x or 11.x
- Scramble for Laravel (
composer require dedoc/scramble
)
Dependencies
This package relies on the following packages:
- spatie/laravel-package-tools
- doctrine/dbal
- dedoc/scramble (for API documentation)
Installation
Install the package via composer:
Configuration
The package can be configured through the config/zcrudgen.php file. Key options include:
- Namespace customization
- Path configuration
- Authentication & authorization settings
- OpenAPI/Swagger configuration
- AI integration settings
Example Configuration
Basic Usage
Generate a basic CRUD API:
With relationships:
With middleware:
With permissions:
Advanced Features
Relationships
The package supports automatic generation of related models and their relationships:
This will:
- Set up proper model relationships
- Include related data in resources
- Add relationship validation in requests
- Generate nested API documentation
Custom Middleware
You can specify custom middleware for your API endpoints:
Permission Integration
When using the --permissions flag, the package will:
- Generate standard CRUD permissions (create-{model}, read-{model}, etc.)
- Add permission middleware to controllers
- Document permission requirements in OpenAPI
Advanced Filtering
All generated APIs support advanced filtering:
AI Integration
Configuration
Enable AI integration in your .env:
Features
The AI integration provides:
- Intelligent business logic generation
- Smart validation rules
- Automated event handling
- Cache strategy suggestions
- Data transformation optimization
Example AI-Generated Logic
OpenAPI/Swagger
Automatic Documentation
The package automatically generates OpenAPI documentation for all endpoints:
Customization
You can customize the generated documentation in config/zcrudgen.php
:
Testing
Run the test suite:
Run specific tests:
Coverage report:
All versions of zcrudgen with dependencies
doctrine/dbal Version ^4.2
illuminate/contracts Version ^11.0|^10.0
spatie/laravel-package-tools Version ^1.16