PHPackages                             rodrixcornell/apigenerate - 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. [CLI &amp; Console](/categories/cli)
4. /
5. rodrixcornell/apigenerate

ActiveLibrary[CLI &amp; Console](/categories/cli)

rodrixcornell/apigenerate
=========================

Easy api generate for the Laravel Framework.

v1.1.0(4y ago)499MITPHPPHP ^7.4|^8.0

Since Aug 27Pushed 2y agoCompare

[ Source](https://github.com/rodrixcornell/laravel-api-generate)[ Packagist](https://packagist.org/packages/rodrixcornell/apigenerate)[ Docs](http://github.com/rodrixcornell/laravel-api-generate)[ RSS](/packages/rodrixcornell-apigenerate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (8)Used By (0)

rodrixcornell/apigenerate
=========================

[](#rodrixcornellapigenerate)

API Rest generator for Laravel Framework. Create your api resource in seconds using only your database table name or connection name.

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

[](#installation)

```
  "require-dev": {
    ...
    "rodrixcornell/apigenerate": "dev-master",
    ...
  },
  "repositories": [{
    "type": "vcs",
    "url": "https://github.com/rodrixcornell/laravel-api-generate.git"
  }],
```

```
composer update
```

```
composer require rodrixcornell/apigenerate --dev
```

Install the service provider:

```
// app/Providers/AppServiceProvider.php
public function register()
{
	if ($this->app->environment() !== 'production') {
		$this->app->register(\Rodrixcornell\ApiGenerate\ApiGenerateServiceProvider::class);
	}
}
```

Usage
-----

[](#usage)

### Creating a new resource

[](#creating-a-new-resource)

To create all API Rest resources run this command (Only postgres and mysql):

```
php artisan api:generate --con=conection_name
```

To create a new api resource run this command:

```
php artisan api:generate --table=table_name --relation=true
```

You can see result in [http://localhost:8000/api/table\_name](http://localhost:8000/api/table_name)You can find your new resource in app/Modules/General. General is the default

### Params

[](#params)

To define route:

```
php artisan api:generate --table=table_name --route=my-custom-route --relation=true
```

To define module name:

```
php artisan api:generate --table=table_name --route=my-custom-route --module=Exemple --relation=true
```

You can find your new resource in app/Modules/Exemple.

Postcardware
------------

[](#postcardware)

You are free to use this package as it's [MIT-licensed](LICENSE.md)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 51.9% 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 ~138 days

Total

5

Last Release

1532d ago

PHP version history (3 changes)v1.0.0PHP &gt;=7.1

v1.0.1PHP &gt;=7.0

v1.1.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1565632?v=4)[Rodrigo Cabral](/maintainers/rodrixcornell)[@rodrixcornell](https://github.com/rodrixcornell)

---

Top Contributors

[![phfoxer](https://avatars.githubusercontent.com/u/5194383?v=4)](https://github.com/phfoxer "phfoxer (14 commits)")[![rodrixcornell](https://avatars.githubusercontent.com/u/1565632?v=4)](https://github.com/rodrixcornell "rodrixcornell (12 commits)")[![atefBB](https://avatars.githubusercontent.com/u/10966925?v=4)](https://github.com/atefBB "atefBB (1 commits)")

---

Tags

apiconsolelaravelartisangeratorgenerate api

### Embed Badge

![Health badge](/badges/rodrixcornell-apigenerate/health.svg)

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

###  Alternatives

[phfoxer/apigenerate

Easy api generate for the Laravel Framework.

4016.5k](/packages/phfoxer-apigenerate)[recca0120/terminal

run laravel artisan command in web application

878410.9k2](/packages/recca0120-terminal)[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)

PHPackages © 2026

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