PHPackages                             421c/autodoc-laravel - 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. 421c/autodoc-laravel

ActiveLibrary[API Development](/categories/api)

421c/autodoc-laravel
====================

Automatic OpenApi documentation and TypeScript generation tool for Laravel projects

v2.0.0(1mo ago)121.3k↑21.3%MITPHPPHP ^8.5

Since May 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/421C/autodoc-laravel)[ Packagist](https://packagist.org/packages/421c/autodoc-laravel)[ RSS](/packages/421c-autodoc-laravel/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (10)Dependencies (36)Versions (21)Used By (0)

PHP autodoc-laravel
===================

[](#php-autodoc-laravel)

This is a Laravel integration of [PHP autodoc](https://github.com/421C/autodoc-php).

PHP autodoc automatically generates up-to-date OpenAPI 3.1.0 documentation and TypeScript types directly from your PHP code. PHPDoc annotations are supported if present, but completely optional.

This package provides seamless integration with Laravel routes, request validation, query builder, database models, API resources, and more.

**Visit [phpautodoc.com](https://phpautodoc.com) to see full documentation.**

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

[](#installation)

To install PHP autodoc in a Laravel project, simply install the `421c/autodoc-laravel` package.

```
composer require 421c/autodoc-laravel

```

Then copy configuration file to your project using the command below.

```
php artisan vendor:publish --provider="AutoDoc\Laravel\Providers\AutoDocServiceProvider"

```

Open your `config/autodoc.php` file and set `openapi_export_dir` setting to a directory where you want to save OpenApi 3.1.0 schema JSON files generated by this package. Make sure this directory exists and is writable.

In your configuration file you can also specify URL to your API docs page with `laravel.url` setting. If you left it unchanged, you can visit `/api-docs` route to see the generated documentation.

To improve the generated documentation, see [tips to improve the generated documentation](https://phpautodoc.com/#tips-to-improve-the-generated-documentation).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~42 days

Total

19

Last Release

31d ago

Major Versions

v1.11.1 → v2.0.02026-07-19

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43956161?v=4)[Edžus](/maintainers/edzus)[@edzus](https://github.com/edzus)

---

Top Contributors

[![edzus](https://avatars.githubusercontent.com/u/43956161?v=4)](https://github.com/edzus "edzus (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/421c-autodoc-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/421c-autodoc-laravel/health.svg)](https://phpackages.com/packages/421c-autodoc-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

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