noud/laravel-api-platform

Laravel package conform API-Platform

dev-master 2021-01-07 16:52 UTC

This package is auto-updated.

Last update: 2024-11-08 01:27:21 UTC


README

This Laravel PHP package is automatic programming from ER model to API CRUD back end.

The resulting back end is partly API-Platform compatible so there front end client generator component works.

Workflow

composer install noud/laravel-api-platform

Use erd-js to transform the .er to React.js Entity-relationship diagram front end .json.

cd ../erd-js && npm transform

Import in React.js Entity-relationship diagram front end

Export Laravel databases migrations

# install generator
php artisan infyom:publish
php artisan vendor:publish --provider="Appointer\Swaggervel\SwaggervelServiceProvider"
# install swaggervel
php artisan vendor:publish --tag=public
php artisan vendor:publish --tag=config
php artisan vendor:publish --tag=views
# migrate database
php artisan migrate
# generate Models and Swagger API end-points
php artisan api-platform:generate
# generate Entity Relationship Diagram
php artisan generate:erd

Depends on packages

📁