asdfprah/fasttrack

Easily build API with Laravel Framework

dev-master 2024-02-05 21:14 UTC

This package is auto-updated.

Last update: 2024-04-05 21:43:14 UTC


README

Laravel library to make an API easily.

This library is NOT stable yet. Use it at your own risk

Installation

Use the package manager composer to install Fasttrack.

composer require asdfprah/fasttrack

Usage

# to build a Laravel FormRequest named "StoreUserRequest" 
# for the \App\Http\Models\User model
php artisan fasttrack:request StoreUserRequest User

# to build a UserController, StoreUserRequest, UpdateUserRequest and routes
# for the \App\Http\Models\User model
php artisan fasttrack:api User

# to build a Controller, Requests and Routes for all models
php artisan fasttrack:api

Contributing

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

To Do

  • Build missing models
  • Build FormRequest
  • Build Controllers
  • Optionally build JS classes to use the generated API (Something like Coloquent or vue-api-query)
  • Improve code readability, honestly i just make it work for a side project
  • Tests...

License

MIT