PHPackages                             mrcookie/simple-api-crud-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. mrcookie/simple-api-crud-generator

ActiveLibrary[API Development](/categories/api)

mrcookie/simple-api-crud-generator
==================================

This is my package simple-api-crud-generator

0.0.1(2y ago)24MITPHPPHP ^8.1

Since Sep 17Pushed 2y ago1 watchersCompare

[ Source](https://github.com/oOMrCookieOo/simple-api-crud-generator)[ Packagist](https://packagist.org/packages/mrcookie/simple-api-crud-generator)[ Docs](https://github.com/mrcookie/simple-api-crud-generator)[ RSS](/packages/mrcookie-simple-api-crud-generator/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (12)Versions (2)Used By (0)

Laravel API CRUD Generator
==========================

[](#laravel-api-crud-generator)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c42dbaeb716d2acc563423e5d08bae538022ff616aab0db4b8bd123595651266/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6f6b69652f73696d706c652d637275642d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cookie/simple-crud-generator)

The Laravel CRUD Generator is a command-line tool designed to streamline the process of creating CRUD (Create, Read, Update, Delete) operations for your Laravel-based RESTful API. It automates the generation of actions, routes, and resources, allowing you to quickly set up endpoints for managing your application's data models.

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

[](#installation)

You can install the package via composer:

```
composer require mrcookie/simple-api-crud-generator
```

Usage
-----

[](#usage)

```
php artisan api-crud:generate [App/Models/User or User or user]
```

and then you will get this routes with the related actions so you can customize everything to your needs:

```
Route::name('users.')->prefix('users')->group(function () {
    Route::get('', App\Api\Actions\Users\GetUsersAction::class);
    Route::get('{id}', App\Api\Actions\Users\ShowUserAction::class);
    Route::put('{id}', App\Api\Actions\Users\UpdateUserAction::class);
    Route::delete('{id}', App\Api\Actions\Users\DeleteUserAction::class);
});
```

Im using `"spatie/laravel-query-builder": "^5.3"` to handle query and filtering. u can see `"spatie/laravel-query-builder": "^5.3"` [https://spatie.be/docs/laravel-query-builder/v5/introduction](documentation)

You can specified `allowedFilters` and `allowedFields` in your model

Example

```
class User extends Model {
    public static array $allowedFilters = [
        'name'
    ];

    public static array $allowedFields = [
        'name'
    ];
}
```

Notes
-----

[](#notes)

- this Package Uses [Laravel Actions](https://laravelactions.com) for the crud operations
- this Package Uses [Scramble](https://scramble.dedoc.co/usage/getting-started) To Generate API Documentation

Scramble Docs

```
visit [http://localhost:8000/docs/api] to see the generated docs api routes
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [oOMrCookieOo](https://github.com/oOMrCookieOo)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

1020d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44684334?v=4)[Maali isslem](/maintainers/oOMrCookieOo)[@oOMrCookieOo](https://github.com/oOMrCookieOo)

---

Top Contributors

[![oOMrCookieOo](https://avatars.githubusercontent.com/u/44684334?v=4)](https://github.com/oOMrCookieOo "oOMrCookieOo (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelMrCookiesimple-api-crud-generator

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[dedoc/scramble

Automatic generation of API documentation for Laravel applications.

2.1k11.2M97](/packages/dedoc-scramble)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M46](/packages/spatie-laravel-pdf)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

815320.5k3](/packages/defstudio-telegraph)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[rupadana/filament-api-service

A simple api service for supporting filamentphp

210120.6k7](/packages/rupadana-filament-api-service)[lettermint/lettermint-laravel

Official Lettermint driver for Laravel

1190.2k1](/packages/lettermint-lettermint-laravel)

PHPackages © 2026

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