Download the PHP package jcsoriano/laravel-crud-templates without Composer

On this page you can find all versions of the php package jcsoriano/laravel-crud-templates. 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-templates

Laravel CRUD Templates

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

CRUD Templates for Laravel allows you to generate controllers, models, policies, requests, resources, migrations, factories, and even tests - all the files you need to complete CRUD features with a single command.

You can completely modify the template or create your own templates to fit your project's conventions perfectly.

Requirements

Installation

You can install the package via Composer as a dev dependency:

The package will automatically register itself via Laravel's package discovery.

Publishing Stubs (Optional)

You can publish the stubs to customize them:

The Command

To generate a CRUD feature, you may use this command:

Quick Start Example

Sample command to generate a fully functioning RESTful API:

Generated Files

This command generates all the files needed to complete the CRUD feature, from routes, to validation, to authorization, to API responses, to migrations, to factories, to tests, and more.

Generated Routes

The command automatically registers the following routes in your routes/api.php file:

HTTP Method URI Action Description
GET /api/posts index List all posts (paginated)
POST /api/posts store Create a new post
GET /api/posts/{id} show Show a specific post
PUT/PATCH /api/posts/{id} update Update a post
DELETE /api/posts/{id} destroy Delete a post

Response Format

Single Resource:

Collection (with pagination):

Validation Rules

The request classes automatically include appropriate validation:

StorePostRequest:

Model Enhancements

The generated Post model will include several automatic enhancements:

Relationship Methods:

Type Casting:

Fillable Fields:

Migration with Foreign Keys

The migration includes proper foreign key constraints:

API Resource

The generated PostResource automatically includes relationships:

Documentation

📚 View Full Documentation

Getting Started

Available Templates

Using Templates

Customizing Templates

Support

If you find this package useful and would like to support its development, consider supporting me through one of these platforms:

Buy Me a Coffee Patreon Ko-fi

Your support helps me continue building and maintaining this package. Thank you! 🙏

Coming Soon

  1. Filament CRUD Generator - a Filament GUI for generating CRUD features
  2. Livewire CRUD Generator - a CRUD template built for the Livewire starter kit
  3. Vue CRUD Generator - a CRUD template built for the Vue starter kit
  4. React CRUD Generator - a CRUD template built for the React starter kit

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.

Credits

License

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


All versions of laravel-crud-templates with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
binafy/laravel-stub Version ^1.1
illuminate/contracts Version ^11.0||^12.0
spatie/laravel-package-tools Version ^1.16
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 jcsoriano/laravel-crud-templates contains the following files

Loading the files please wait ...