PHPackages                             tobidsn/apigenerator - 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. [Admin Panels](/categories/admin)
4. /
5. tobidsn/apigenerator

ActiveLibrary[Admin Panels](/categories/admin)

tobidsn/apigenerator
====================

Laravel Api CRUD Generator

v1.0.4(5y ago)04MITPHPPHP ^7.1 || ^8.0

Since May 6Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tobidsn/apigenerator)[ Packagist](https://packagist.org/packages/tobidsn/apigenerator)[ RSS](/packages/tobidsn-apigenerator/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (3)Versions (6)Used By (0)

Laravel Admin CRUD Generator
============================

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

[![Total Downloads](https://camo.githubusercontent.com/7344aed5d53d5dd0acdb9c0703a69b1372a2bd3634a67b2a9fa2cc1fdb1f23b9/68747470733a2f2f706f7365722e707567782e6f72672f746f626964736e2f61706967656e657261746f722f642f746f74616c2e737667)](https://packagist.org/packages/tobidsn/apigenerator)[![Latest Stable Version](https://camo.githubusercontent.com/fc3fadf4d87ee069674eb3907b44a86e786b9b6d825271fd30838a7c119db9e6/68747470733a2f2f706f7365722e707567782e6f72672f746f626964736e2f61706967656e657261746f722f762f737461626c652e737667)](https://packagist.org/packages/tobidsn/apigenerator)[![License](https://camo.githubusercontent.com/fd947984ae3f698b418e62ad53678a55dd822a9efcc4497e16cb1ecf7c4fa50a/68747470733a2f2f706f7365722e707567782e6f72672f746f626964736e2f61706967656e657261746f722f6c6963656e73652e737667)](https://packagist.org/packages/tobidsn/apigenerator)

This Generator package provides various generators like Admin CRUD, Controller, Model, View based from table for your painless development of your applications.

Requirements
------------

[](#requirements)

```
Laravel >= 5.5
PHP >= 7.0

```

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

[](#installation)

```
composer require tobidsn/apigenerator

```

Once the package is installed, you should register the `Tobidsn\ApiGenerator\ApiGeneratorServiceProvider` service provider. Normally, Laravel 5.5+ will register the service provider automatically.

After that, publish its assets using the `vendor:publish` Artisan command:

```
php artisan vendor:publish --provider="Tobidsn\ApiGenerator\ApiGeneratorServiceProvider"

```

Usage
-----

[](#usage)

### Generating Migrations

[](#generating-migrations)

```
php artisan make:migration create_users_table

```

### Running Migrations

[](#running-migrations)

```
php artisan migrate

```

### Admin CRUD Command

[](#admin-crud-command)

```
php artisan crud:admin User --table=users

```

### Signature information

[](#signature-information)

```
protected $signature = 'crud:admin {name : Class (singular) for example User}
                        {--table= : The name of the Table.}
                        {--model= : The name of the Model.}
                        {--route-group= : The name of the Model.}
                        {--view-path= : The name of the view path.}';
```

Test
----

[](#test)

```
php artisan serve

```

Please Login to laravel and access `http://localhost:8000/admin/user`

Configuration
-------------

[](#configuration)

You will find a configuration file located at `config/apigenerator.php`

### Custom Template

[](#custom-template)

When you want to use your own custom template files, then you should turn it on and it will use the files from `resources/stubs/`

```
'custom_template' => true,
```

### Path

[](#path)

You can change your template path easily, the default path is `resources/stubs/`.

```
'path' => base_path('resources/stubs/'),
```

### View Columns

[](#view-columns)

When generating CRUD or the views, the generator will assume the column number to show for the CRUD grid or detail automatically from the config. You can change it.

```
'view_columns_number' => 5,
```

### Custom Delimiter

[](#custom-delimiter)

Set your delimiter which you use for your template vars. The default delimiter is `%%` in everywhere.

```
'custom_delimiter' => ['%%', '%%'],
```

Note: You should use the delimiter same as yours template files.

### View Template Vars

[](#view-template-vars)

This configuration will help you to use any custom template vars in the views `index`, `form`,`list`, `create`, `edit`, `show`

```
'dynamic_view_template' => [],
```

### Route group

[](#route-group)

Route group of the controller

```
'route_group' => 'admin',
```

### View path

[](#view-path)

View path for view generator

```
'view_path' => '_admin',
```

### Form Helper

[](#form-helper)

Helper for custom view and form

```
'form_helper' => 'adminlte3',
```

Custom Templates
----------------

[](#custom-templates)

The package allows user to extensively customize or use own templates.

### All Templates

[](#all-templates)

To customize or change the template, you need to follow these steps:

1. Just make sure you've published all assets of this package. If you didn't just run this command.

    ```
    php artisan vendor:publish --provider="Tobidsn\ApiGenerator\ApiGeneratorServiceProvider"
    ```
2. To override the default template with yours, turn on `custom_template` option in the `config/apigenerator.php` file.

    ```
    'custom_template' => true,
    ```
3. Now you can customize everything from this `resources/stubs/` directory.
4. Even if you need to use any custom variable just add those in the `config/apigenerator.php` file.

License
-------

[](#license)

This project is licensed under the MIT License - see the [License File](LICENSE) for details

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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 ~0 days

Total

5

Last Release

1828d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fda282c52babfdf68807b12c5430737578d2099f6a5dc8527c07d474af3a6030?d=identicon)[tobidsn](/maintainers/tobidsn)

---

Top Contributors

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

---

Tags

laravelcrudAdmin Generatorcrud generatorlaravel crud generator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tobidsn-apigenerator/health.svg)

```
[![Health](https://phpackages.com/badges/tobidsn-apigenerator/health.svg)](https://phpackages.com/packages/tobidsn-apigenerator)
```

###  Alternatives

[appzcoder/crud-generator

Laravel CRUD Generator

1.4k581.4k7](/packages/appzcoder-crud-generator)[takielias/tablar-crud-generator

Laravel Tablar Crud Generator based on https://github.com/takielias/tablar

315.6k](/packages/takielias-tablar-crud-generator)[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)
