PHPackages                             dolar/laravel-crud-api-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. dolar/laravel-crud-api-generator

ActiveLibrary[API Development](/categories/api)

dolar/laravel-crud-api-generator
================================

a laravel rest api generator with API Resources

1.2.8(2y ago)125MITPHPPHP ^7.2|^8.0|^8.1

Since Oct 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Motakabbir/laravel-crud-api-generator)[ Packagist](https://packagist.org/packages/dolar/laravel-crud-api-generator)[ Docs](https://github.com/Motakabbir/laravel-crud-api-generator)[ RSS](/packages/dolar-laravel-crud-api-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (0)

Laravel API Generator With Resources
====================================

[](#laravel-api-generator-with-resources)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ef06424c5358e3f8f2ee8c9a86c243862fe84914190c17a6e323ef9acd7370b8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646f6c61722f6c61726176656c2d6170692d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dolar/laravel-api-generator)[![Build Status](https://camo.githubusercontent.com/02e2d372c6f3f5da5ba8b7149dd9ed9aee2b435c974576125f40b4ae2deb16da/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f646f6c61722f6c61726176656c2d6170692d67656e657261746f722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/dolar/laravel-api-generator)[![Quality Score](https://camo.githubusercontent.com/f851dc5cd93b31782a075c1b4840abf48e32d10feceaf3fc7f4da095d136c9e3/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646f6c61722f6c61726176656c2d6170692d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/dolar/laravel-api-generator)[![Total Downloads](https://camo.githubusercontent.com/b4c8dbad2740a338ca4b8f097e24ecb2d3230e0b434b29d49e60aa7aa9a8e123/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646f6c61722f6c61726176656c2d6170692d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dolar/laravel-api-generator)[![StyleCI](https://camo.githubusercontent.com/915f024046da2ff83d56b8bd465c2a5abbaaad587031a79c237449a44cccd9fb/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3231383832383131352f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/218828115)

This package is used to generate laravel api with Resources

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require dolar/laravel-crud-api-generator
```

Publish Configuration File
--------------------------

[](#publish-configuration-file)

```
php artisan vendor:publish --provider="Dolar\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
-----

[](#usage)

```
php artisan api:generate --model=User
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Motakabbir Morshed](https://github.com/Motakabbir)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Total

11

Last Release

925d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/28539ed547a28e17e337427125e1ed922cc3363ec78b952740779017b57d591e?d=identicon)[Motakabbir](/maintainers/Motakabbir)

---

Top Contributors

[![Motakabbir](https://avatars.githubusercontent.com/u/17094741?v=4)](https://github.com/Motakabbir "Motakabbir (11 commits)")

---

Tags

api-generatordolarlaravel-crud-api-generatorlaravel-crud-api-resources

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dolar-laravel-crud-api-generator/health.svg)

```
[![Health](https://phpackages.com/badges/dolar-laravel-crud-api-generator/health.svg)](https://phpackages.com/packages/dolar-laravel-crud-api-generator)
```

###  Alternatives

[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[bhavingajjar/laravel-api-generator

a laravel rest api generator with API Resources

487.7k](/packages/bhavingajjar-laravel-api-generator)[larafast/fastapi

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

1233.9k](/packages/larafast-fastapi)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[andreacivita/api-crud-generator

Simple API Crud generator for Laravel

131.2k](/packages/andreacivita-api-crud-generator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
