Download the PHP package ashique-ar/laravel-crud-generator without Composer

On this page you can find all versions of the php package ashique-ar/laravel-crud-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-crud-generator

Laravel CRUD Generator

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A powerful, configuration-driven CRUD API generator for Laravel applications. Generate complete REST APIs with advanced features like permissions, filtering, sorting, validation, and custom business logic handlers - all through simple configuration.

โœจ Features

๐Ÿ“‹ Requirements

๐Ÿ“ฆ Installation

Install the package via Composer:

Run the installation command:

This will:

๐Ÿš€ Quick Start

1. Configure Your First Resource

Edit config/crud.php to define your resources:

2. Register Routes

Add the CRUD routes to your routes/api.php file:

3. Generate Permissions

4. Start Using Your API

Your CRUD endpoints are now available:

๐Ÿ“– Available Endpoints

For each configured resource, the following endpoints are automatically generated:

Method Endpoint Description
GET /api/v1/{resource} List resources with pagination, search, and sorting
POST /api/v1/{resource} Create a new resource
GET /api/v1/{resource}/{id} Get a specific resource
PUT/PATCH /api/v1/{resource}/{id} Update a resource
DELETE /api/v1/{resource}/{id} Delete a resource
POST /api/v1/{resource}/bulk Bulk operations (if enabled)
GET /api/v1/{resource}/trashed List soft-deleted resources (if enabled)
POST /api/v1/{resource}/{id}/restore Restore soft-deleted resource (if enabled)
DELETE /api/v1/{resource}/{id}/force Force delete resource (if enabled)
GET /api/v1/{resource}/docs API documentation for the resource

Query Parameters

Pagination

Search

Sorting

Filtering

๐Ÿ”ง Advanced Usage

Model Namespacing

The package supports flexible model namespacing to accommodate different project structures:

When using artisan commands, you can specify models in several ways:

Custom Logic Handlers

Create custom business logic for your resources:

This generates:

Then update your configuration:

Adding New Resources

Use the artisan command to quickly add new resources:

This will interactively help you configure:

Bulk Operations

Perform operations on multiple resources:

Permissions

The package integrates seamlessly with Spatie Laravel Permission:

API Documentation

Access auto-generated documentation:

Returns OpenAPI 3.0 compatible JSON that can be used with Swagger UI or similar tools.

๐Ÿ“ Configuration

The package uses a comprehensive configuration system in config/crud.php. Here's a complete reference:

Global Configuration

Resource Configuration Options

Each resource supports the following configuration options:

Validation Rule Placeholders

In validation rules, you can use placeholders that will be replaced during validation:

Example:

๐Ÿงช Testing

Run the package tests:

Run tests with coverage:

๐Ÿ“ Configuration

See the Configuration Guide for detailed configuration options.

๐Ÿ”„ 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.

๐Ÿ“„ License

The MIT License (MIT). Please see License File for more information.

๐Ÿ™ Credits

๐Ÿ’ก Support


Made with โค๏ธ for the Laravel community


All versions of laravel-crud-generator with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^10.0|^11.0|^12.0
spatie/laravel-permission Version ^5.0|^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ashique-ar/laravel-crud-generator contains the following files

Loading the files please wait ....