noud/laravel-api-platform

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Laravel package conform API-Platform

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

This package is auto-updated.

Last update: 2021-09-07 18:08:34 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

📁