PHPackages                             kmlaravel/apis-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. kmlaravel/apis-generator

ActiveLibrary[API Development](/categories/api)

kmlaravel/apis-generator
========================

accelerate your work by building for you new api just a few clicks.

v1.1.0(4y ago)6231MITPHP

Since Oct 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/karam-mustafa/apis-generator)[ Packagist](https://packagist.org/packages/kmlaravel/apis-generator)[ RSS](/packages/kmlaravel-apis-generator/feed)WikiDiscussions master Synced today

READMEChangelog (5)DependenciesVersions (5)Used By (0)

Apis Generator
--------------

[](#apis-generator)

[![License](https://camo.githubusercontent.com/009c9295e448042da01f8c8298089e4911401dd6cbe80e809050d3e2d45b4a80/68747470733a2f2f706f7365722e707567782e6f72672f6b6d6c61726176656c2f617069732d67656e657261746f722f6c6963656e7365)](//packagist.org/packages/kmlaravel/apis-generator)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/f89d5445825cce7ce6746d9e54576460de1377c49755f894e2dd9d7dc1539c73/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6d6c61726176656c2f617069732d67656e657261746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kmlaravel/apis-generator/?branch=master)[![Build Status](https://camo.githubusercontent.com/f2b35d4109ed7bdd82ed0730424b58a5270011bf19c17d12a187078911750a59/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6d6c61726176656c2f617069732d67656e657261746f722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/kmlaravel/apis-generator/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/132b1ba8299b91cab6a48c58d66def8513b171a0f1f21efecebd446af94eb912/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b6d6c61726176656c2f617069732d67656e657261746f722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![Code Quality](https://camo.githubusercontent.com/c6e593292d6356c9a003e1ee399dbae1d1104e2ceb45a51abf4ab7e7e64afe64/68747470733a2f2f7777772e636f64652d696e73706563746f722e636f6d2f70726f6a6563742f31343538332f73636f72652f737667)](https://www.code-inspector.com/project/14583/score/svg)

Notes
=====

[](#notes)

> ### laravel 8 not supported yet !
>
> [](#laravel-8-not-supported-yet-)

APIs generator was developed for [laravel 5.8+](http://laravel.com/) to accelerate your work by building for your new api just a few clicks.

this package came with a base controller which helps to handle some logic and generate responses, we will develop all functions that help developers to reduce development time, simple interface to manage api creations process and view all api you had made before based on the credential JSON file.

What does this package build?
-----------------------------

[](#what-does-this-package-build)

this package auto-build :

- Model : with fill fillable properties depending on the values you chose.
- Request : with validations rules and handle validation error message.
- Controller : with full crud process based on the base controller.
- Resource : to get resources data from the model.
- Migration : with auto-generate for your database columns.

Features
--------

[](#features)

- Friendly simple interface to create your api with dark mode option using [Darkmode.js](https://github.com/sandoche/Darkmode.js).
- Giving you the choice to choose what to build.
- The large development space in the future update.

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

[](#installation)

##### 1 - Dependency

[](#1---dependency)

The first step is using composer to install the package and automatically update your composer.json file, you can do this by running:

```
composer require kmlaravel/apis-generator
```

- #### Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

    [](#laravel-uses-package-auto-discovery-so-doesnt-require-you-to-manually-add-the-serviceprovider)

##### 3 - Copy the package providers to your local config with the publish command, this will publish asset and config :

[](#3---copy-the-package-providers-to-your-local-config-with-the-publish-command-this-will-publish-asset-and-config-)

```
php artisan vendor:publish --provider="KMLaravel\ApiGenerator\Providers\ApisGeneratorServiceProviders"
```

- #### or you may publish asset and config separately.

    [](#or-you-may-publish-asset-and-config-separately)

##### 3 - Copy the package config to your local config with the publish command:

[](#3---copy-the-package-config-to-your-local-config-with-the-publish-command)

```
php artisan vendor:publish --tag=apis-generator-config
```

In `apis_generator.php` configuration file you can determine the properties of the default values and some behaviors.

##### 4 - Copy the package assets to your local resource views with the publish command:

[](#4---copy-the-package-assets-to-your-local-resource-views-with-the-publish-command)

```
php artisan vendor:publish --tag=apis-generator-asset
```

Basic usage
-----------

[](#basic-usage)

##### 1 - Load your routes

[](#1---load-your-routes)

As we said a little while ago we save your process result in `resource/views/ApiGenerator/credential.josn`this file contains an array that in turn contains objects each one contains controller class name, URL, api title, and type for your api.

to run this route we have to add this facade class in your `routes/api.php` file.

```
\KMLaravel\ApiGenerator\Facade\KMRoutesFacade::getRoutes();
```

now all your routes load automatically from routes in `credential.json` file.

##### 2 - create your api

[](#2---create-your-api)

you should navigate to `{{ your base url }}/apis-generator/create`.

[![create_page](assets/create.png)](assets/create.png)

##### 3 - view all api you have made

[](#3---view-all-api-you-have-made)

you can navigate to `{{ your base url }}/apis-generator/index`.

[![index_page](assets/index.png)](assets/index.png)

config options
--------------

[](#config-options)

> ## add middleware to package routes
>
> [](#add-middleware-to-package-routes)

the initial package route middleware is `web`if you want to add any custom middleware you can do that by adding middleware keys in middleware arrays

```
    /*
    |--------------------------------------------------------------------------
    | package routes middleware
    |--------------------------------------------------------------------------
    |
    | this middleware array if you want to add custom middleware to package route,
    | this is applies to ( /apis-generator/index ) and ( /apis-generator/create ).
    |
    */
    //example
    "middleware" => [
        'admin',
    ],
```

> ## add more database column types
>
> [](#add-more-database-column-types)

you can do that by adding the type label to column\_type array

```
    /*
    |--------------------------------------------------------------------------
    | types of the column in database which laravel provider.
    |--------------------------------------------------------------------------
    |
    | the options in database column select in creating a view,
    | you can add or optimize this column.
    |
    */
    "column_type" => [
        'text',
        'string',
        ...
    ],
```

Changelog
---------

[](#changelog)

Please see the [CHANGELOG](https://github.com/kmlaravel/apis-generator/blob/master/CHANGELOG.md) for more information about what has changed or updated or added recently.

Security
--------

[](#security)

If you discover any security related issues, please email them first to , if we do not fix it within a short period of time please open a new issue describing your problem.

Credits
-------

[](#credits)

[karam mustafa](https://www.linkedin.com/in/karam2mustafa)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Total

4

Last Release

1666d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56937091?v=4)[karam2mustafa](/maintainers/karam2mustafa)[@karam2mustafa](https://github.com/karam2mustafa)

---

Top Contributors

[![karam-mustafa](https://avatars.githubusercontent.com/u/71431942?v=4)](https://github.com/karam-mustafa "karam-mustafa (128 commits)")

---

Tags

apiapi-restapiscrud-apicrud-applicationcurdlaravellaravel-packagerestful-api

### Embed Badge

![Health badge](/badges/kmlaravel-apis-generator/health.svg)

```
[![Health](https://phpackages.com/badges/kmlaravel-apis-generator/health.svg)](https://phpackages.com/packages/kmlaravel-apis-generator)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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