moharamiamir/codegen 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moharamiamir/codegen

最新稳定版本:0.1.8

Composer 安装命令:

composer require moharamiamir/codegen

包简介

generate code for you

README 文档

README

This project provides a fast and streamlined way to create a RESTful API using Laravel Prompt. By answering a few questions, you can generate all the necessary code to set up your API.

Getting Started

To get started with the Laravel Prompt API Generator, please follow these steps:

Install the necessary dependencies:

composer require this package

composer require moharami/codegen --dev

Set your database variable

open .env file and put your database variable that your program can connect to database correctly.

Run the following command:

php artisan make:code

Answer the prompted questions to configure your API. These questions will include details about routes, controllers, models, and database migration.

Once you have answered all the questions, the Laravel Prompt API Generator will generate all the necessary code files and configurations for your RESTful API.

Finally, run the following command to start your API server:

php artisan serve

Your RESTful API is now up and running! You can access it by visiting http://localhost:8000 in your browser.

What files does it create?

the list of files that this command creates is :

  1. Model
  2. Migration (add fields you write in propmt)
  3. Controller
  4. BaseController
  5. Request(save and update) - for validation base on your input
  6. Reource
  7. Factory
  8. Seeder
  9. Route ( add a new route )
  10. Exception

Contributing

Contributions are welcome! If you encounter any issues or have any suggestions for the Laravel Prompt API Generator, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

  • 总下载量: 20
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-08-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固