Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Laravel API RestFull Generator with Tests and OpenApi Documentation

NotificationsYou must be signed in to change notification settings

sr2ds/Laravel-API-RestFull-Generator

Repository files navigation

This project is a simple tool for help you with your CRUDs.

What have in here?

  1. Some stubs to a razoable API RestFull with Tests and OpenAPI documentation.
  2. PHP script to write attributes in all files generated

Is required that your application has L5-Swagger setuped to correct run.

How to usage

1. Download this files to your laravel application

mkdir stubscd stubsgit clone https://github.com/sr2ds/Laravel-API-RestFull-Generator .

2. Setup your schema attributes like filestubs/misc/file.txt

3. Run Script to generate files and write attributes

    php stubs/misc/set-attributes.php stubs/misc/file.txt Example

TODO

  • Fix dateTime Factory to$this->faker->dateTime()->format('Y-m-d H:i:s') and validate todate
  • Refactor way to replace -> Today the replaces there are make by RULES, I to want change this to be by Files.
  • Improve getAttributesListFromFile to accept more attributes
  • Improve datatypes system fully
  • Refactor

Extra Help

If necessary, you can check this repository with all configuration, fully works and video demonstrations:https://github.com/sr2ds/laravel-9-tutorial

About

Laravel API RestFull Generator with Tests and OpenApi Documentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp