Skip to content

sr2ds/Laravel-API-RestFull-Generator

Repository files navigation

Laravel API RestFull Generator

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 stubs
cd stubs
git clone https://github.com/sr2ds/Laravel-API-RestFull-Generator .

2. Setup your schema attributes like file stubs/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 to date
  • 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