Download the PHP package codebider/generate-crud without Composer

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

Laravel Crud Generator

This Laravel CRUD Generator package provides and generates Controller, Model (with eloquent relations), Migration, Routes and Views for developing your applications with a single command.

Features

  1. Automatically generates files in the proper directory structure:

    • Migration
    • Model
    • Controller
    • Views
    • Routes
  2. Interactive prompts for input:

    • Asks for the model name (e.g., Product, User).
    • Collects field names, their data types, and whether they are nullable or not.
    • Allows you to add relationships in the model.
  3. Provides options for:

    • Previewing the generated migration file before saving.
    • Editing the migration file directly in the system's editor specified in the configuration file.
  4. Automatically propagates updates:

    • If you edit fields in the migration file, these changes will also be applied to dependent components like the $fillable property in models.
  5. Controller creation:

    • Choose between generating a basic controller or a resource controller.
  6. Route creation:

    • Choose to generate routes in either web.php or api.php.
  7. View file generation:
    • Choose to generate blade file or not.

Requirements

Laravel >= 8.x
PHP >= 7.4

Installation

1 - Install

2- Publish the default package's config

Usage with Workflow

This tool can create the files by typing the command

  1. Model Name:

    • Enter the desired model name (e.g., Product, Category). Follow Laravel's naming conventions (singular and CamelCase).
  2. Field Names and Types:

    • Input field names along with their data types and whether they are nullable. Use the following format:

      Example:

    • Press Enter without typing anything to end the field input process.
  3. Preview Migration File:

    • Once all fields are entered, preview the migration file to verify its contents.
  4. Edit Migration File:

    • Preview migration in the specified operating system in the config file e.g(config/crud_generator.php).
  5. Propagating Changes:

    • Any changes made to the migration file will automatically update other components where fields are required (e.g., $fillable in models).
  6. Adding Relationships:

    • Add relationships (e.g., one-to-one, one-to-many, many-to-many) to the model by following the interactive prompts.
  7. Creating a Controller:

    • Choose to create a controller

    • Choose between a basic controller (minimal functionality) or a resource controller (includes all RESTful methods).

    • After Selection
  8. Generating Routes:

    • Select whether the routes should be added to web.php or api.php based on your application requirements.

    • After Selection
  9. Creating View Files:

    • Choose to create a view file

      • After Selection
  10. Successfully created the crud
    • After completion of all the steps, you will see a success message indicating that the CRUD operation

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

Awais Javaid Email Me

Hire Me LinkedIn


All versions of generate-crud with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/support Version ^8.0|^9.0|^10.0|^11.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 codebider/generate-crud contains the following files

Loading the files please wait ....