New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

bhavingajjar/laravel-api-generator

a laravel rest api generator with API Resources
8,844 48

Larablocks Analysis

bhavingajjar/laravel-api-generator works with Laravel 5 to 10 (latest release v3.0.4, Jul 21, 2023), all past end of life (the last on Feb 4, 2025): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5 to 10, past end of life since Feb 4, 2025
  • No release in the last 12 months (last: Jul 21, 2023)
  • 57 downloads a month (needs 10,000)
  • 48 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jul 21, 2023.
  • No releases in the last 12 months.
  • First released: May 25, 2020.
  • Monthly downloads: 57.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 29, 2026.

Install
composer require bhavingajjar/laravel-api-generator
Latest Version:v3.0.4
PHP:^7.2|^8.0|^8.1
Laravel:5 – 10
License:MIT
Last Updated:Jul 21, 2023
Links: GitHub  ·  Packagist
Maintainer: bhavingajjar

Laravel API Generator With Resources

Latest Version on Packagist Build Status Quality Score Total Downloads StyleCI

This package is used to generate laravel api with Resources

Installation

You can install the package via composer:

composer require bhavingajjar/laravel-api-generator

Publish Configuration File

php artisan vendor:publish --provider="Bhavingajjar\LaravelApiGenerator\LaravelApiGeneratorServiceProvider" --tag="config"

Next, if you plan for cross origin support, you should add middleware to your api middleware group within your app/Http/Kernel.php file:
'ApiHeaderInject'

add in env
for allow cross origin support
API_ALLOW_CROSS_ORIGIN = true
for json content type
API_JSON_RESPONSE = true

Usage

php artisan api:generate --model=User

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email gajjarbhavin22@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

appzcoder/crud-generator

Laravel CRUD Generator

606,480 1,408
andreacivita/api-crud-generator

Simple API Crud generator for Laravel

1,262 14
larafast/fastapi

A Fast Laravel package to help you generate CRUD API Controllers and Resources,...

4,087 123
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703

Version History

Version Released PHP Laravel License
v3.0.4 ^7.2|^8.0|^8.1 5.8.*|^6.0|^7.0|^8.0|^9.0|^10.0 MIT
v3.0.3 ^7.2|^8.0|^8.1 5.8.*|^6.0|^7.0|^8.0|^9.0 MIT
v3.0.2 ^7.2|^8.0 5.8.*|^6.0|^7.0|^8.0|^9.0 MIT
v3.0.1 ^7.2|^8.0 5.8.*|^6.0|^7.0|^8.0 MIT
v3.0.0 ^7.2|^8.0 5.8.*|^6.0|^7.0|^8.0 MIT