📜  infyom 生成器 (1)

📅  最后修改于: 2023-12-03 15:01:24.483000             🧑  作者: Mango

Infyom Generator

Introduction

Infyom Generator is a popular open-source Laravel generator that allows developers to quickly scaffold the code for CRUD (create, read, update, delete) operations along with API routes, tests, and documentation. It provides many customizable templates, and can also be extended with custom templates for specific use cases.

Infyom Generator saves a lot of time and effort by generating the boilerplate code and structure for the application. It is built on top of the popular AdminLTE template and has support for Laravel versions 5.5, 5.6, 5.7, 5.8, 6, 7, and 8.

Features

Some of the key features of Infyom Generator are:

  • Generates code for CRUD operations along with API routes, tests, and documentation
  • Supports Laravel versions 5.5, 5.6, 5.7, 5.8, 6, 7, and 8
  • Customizable templates for different use cases
  • Built on top of the popular AdminLTE template for a modern and responsive UI
  • Simple and intuitive CLI tool for generating code
Installation

You can install Infyom Generator using Composer. Run the following command in your terminal:

composer require infyomlabs/generator-builder --dev

After installation, you can generate the scaffolding code by running:

php artisan infyom:api_scaffold ModelName --fields='field1:datatype,field2:datatype,...'
Usage

Infyom Generator provides many customizable templates for generating code. You can customize the templates or create your own custom templates for specific use cases.

Here is an example of how to generate code using Infyom Generator:

php artisan infyom:api_scaffold Post --fields='title:string,body:text,is_published:boolean'

This will generate the boilerplate code for CRUD operations of a Post model with fields title (string), body (text), and is_published (boolean). It will also generate API routes, tests, and documentation.

Conclusion

Infyom Generator is a powerful and popular open-source Laravel generator that saves a lot of time and effort in generating the boilerplate code for CRUD operations along with API routes, tests, and documentation. It has many customizable templates and can be extended with custom templates for specific use cases.