PHPackages                             nunahsan/apidocs - 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. nunahsan/apidocs

ActiveLibrary

nunahsan/apidocs
================

Provide API generator for laravel

v1.0.1(4y ago)0275MITPHP

Since Apr 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nunahsan/apidocs)[ Packagist](https://packagist.org/packages/nunahsan/apidocs)[ RSS](/packages/nunahsan-apidocs/feed)WikiDiscussions main Synced 1mo ago

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

apidocs
=======

[](#apidocs)

Laravel package - api document generator

sample usage
============

[](#sample-usage)

```
#routes file

use Nunahsan\ApiDocs\Docs;

Route::get('/docs', function (Request $request) {
    Docs::setConfig([
        [
            App\Http\Controllers\Controller::class, [
                'method1', 'method2', 'method3'
            ]
        ]
    ]);

    return view('apidocs::view1')
            ->with('data', Docs::getOutput())
            ->with('apiList', Docs::getApiList())
            ->with('header', [
                'title' => 'API For ' . env('APP_NAME'),
                'version' => 'V1.0',
                'endpoint' => 'https://endoint.api.com'
    ]);
});

```

```
# controller file

public function method1(Request $request) {
    $ApiDocs = [
        "name" => "Auth : Login",
        "url" => "/api/test1",
        "method" => "POST",
        "description" => "This is api description",
        "validation" => [
            "header" => [
                "content-type" => "required|string|description:application/json",
                "authorization" => "required|string|description:Bearer Token"
            ],
            "body" => [
                "name" => "required|string|max:50|min:3|description:hello world",
                "description" => "required|string|min:3|max:200",
                "status" => "required|integer|in:0,1",
                "seq" => "required|integer|min:0",
                "image_url" => "required|string|min:5",
                "banner" => "integer|in:1,2"
            ]
        ],
        "response" => '{"data":"timezone":"Asia\/Kuala_Lumpur","environment":"development","execution_duration":"0.012310028076172 sec","log_id":"760497ff-5a22-48c8-aa09-4fb42e502be1","message":"Granted"}'
    ];

    $validator = Validator::make($request->all(), $ApiDocs['validation']['body']);

    if ($validator->fails()) {
        return Response()->json($validator->errors());
    }
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

1483d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/nunahsan-apidocs/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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