PHPackages                             rbr/laravel-api-docs - 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. rbr/laravel-api-docs

ActiveLibrary[API Development](/categories/api)

rbr/laravel-api-docs
====================

A self-analyzing tool that scans a Laravel project's routes, controllers, and FormRequests to generate browsable API documentation.

v1.0.7(1mo ago)07↑2471.4%MITPHPPHP ^8.2

Since Mar 29Pushed 1mo agoCompare

[ Source](https://github.com/rbraju3m/rbrlaravelapidoc)[ Packagist](https://packagist.org/packages/rbr/laravel-api-docs)[ RSS](/packages/rbr-laravel-api-docs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (9)Used By (0)

RBR Laravel API Doc
===================

[](#rbr-laravel-api-doc)

A self-analyzing tool that scans a Laravel project's routes, controllers, and FormRequests to generate browsable API documentation.

**Author:** Rashedul Bari Raju ()

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

[](#installation)

```
composer require rbr/laravel-api-docs
```

The package uses Laravel's auto-discovery, so the service provider will be registered automatically.

Setup
-----

[](#setup)

### 1. Publish the config file

[](#1-publish-the-config-file)

```
php artisan vendor:publish --tag=api-docs-config
```

### 2. Run the migrations

[](#2-run-the-migrations)

```
php artisan migrate
```

### 3. Publish frontend assets (optional)

[](#3-publish-frontend-assets-optional)

```
php artisan vendor:publish --tag=api-docs-assets
php artisan vendor:publish --tag=api-docs-css
php artisan vendor:publish --tag=api-docs-views
```

Usage
-----

[](#usage)

### Generate API Documentation

[](#generate-api-documentation)

```
php artisan api-docs:generate
php artisan api-docs:generate --project={id}
```

### Browse Documentation

[](#browse-documentation)

Visit `http://your-app.test/docs/api`

### Configuration

[](#configuration)

Edit `config/api-docs.php`:

```
return [
    'title' => env('API_DOCS_TITLE', 'API Documentation'),
    'description' => env('API_DOCS_DESCRIPTION', 'Auto-generated API documentation'),
    'exclude_prefixes' => ['_ignition', '_debugbar', 'sanctum', 'docs/api', 'up'],
    'route_prefix' => 'docs/api',
    'middleware' => ['web'],
    'copyright' => 'RBR Laravel API Doc',
];
```

Features
--------

[](#features)

- Auto-scans Laravel routes, controllers, and FormRequests
- Parses docblock comments for endpoint descriptions
- Detects validation rules (FormRequest, inline, Validator::make)
- Generates realistic response examples from model $fillable, $casts, and migrations
- Supports external Laravel project scanning
- Manual endpoint CRUD
- Beautiful UI with React 19, Mantine UI v8, and Inertia.js
- Dashboard with stats, method distribution, and search

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

[](#requirements)

- PHP 8.2+
- Laravel 11 or 12
- Inertia.js with React

License
-------

[](#license)

MIT

---

© RBR Laravel API Doc by Rashedul Bari Raju. All rights reserved.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance91

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

8

Last Release

46d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ec947bdaf59d12e454b3e07c9e7e5bdfe6ed6b901c1fae98a270627abf51c79?d=identicon)[rbraju3m](/maintainers/rbraju3m)

---

Top Contributors

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

---

Tags

apilaraveldocumentationgeneratorRajurbrrashedul

### Embed Badge

![Health badge](/badges/rbr-laravel-api-docs/health.svg)

```
[![Health](https://phpackages.com/badges/rbr-laravel-api-docs/health.svg)](https://phpackages.com/packages/rbr-laravel-api-docs)
```

###  Alternatives

[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[ovac/idoc

Generate beautiful API documentation from your Laravel application

184477.6k2](/packages/ovac-idoc)

PHPackages © 2026

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