PHPackages                             laraveldaily/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. [API Development](/categories/api)
4. /
5. laraveldaily/apigenerator

ActiveLibrary[API Development](/categories/api)

laraveldaily/apigenerator
=========================

API Generator for Laravel 5

0.1.9(7y ago)851.2k19[2 issues](https://github.com/LaravelDaily/api-generator/issues)[1 PRs](https://github.com/LaravelDaily/api-generator/pulls)MITPHP

Since Jul 27Pushed 6y ago9 watchersCompare

[ Source](https://github.com/LaravelDaily/api-generator)[ Packagist](https://packagist.org/packages/laraveldaily/apigenerator)[ RSS](/packages/laraveldaily-apigenerator/feed)WikiDiscussions master Synced 3d ago

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

API Generator for Laravel 5.4 and above
=======================================

[](#api-generator-for-laravel-54-and-above)

Package to create API Controller and Route entry with one `Artisan` command.

For now we're starting with only one simple command and will expand functionality as needed. Please submit your suggestions in `Issues` section.

**Notice**: if you want to generate not only API, but full admin panel - check out our [QuickAdminPanel.com](https://quickadminpanel.com)

Installation and Usage
======================

[](#installation-and-usage)

1. Install the package via `composer require laraveldaily/apigenerator`
2. Add `Laraveldaily\Apigenerator\ApiGeneratorProvider::class` to your `config\app.php` providers.
3. That's it: run `php artisan make:api --model=XXXXX` where XXXXX is your model name.

This command will generate API Controller and new entry in `routes/api.php` file.

**Notice**: Model should exist already, our package won't create it.

**Example**

`php artisan make:api --model=Project`

Will generate the file **app\\Http\\Controllers\\Api\\ProjectsController.php**:

```
