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

ActiveLibrary[API Development](/categories/api)

hidayat/api-docs
================

This package provide Documentation for rest API

09Blade

Since Sep 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hidayat3676/laravel-rest-api-docs-generator)[ Packagist](https://packagist.org/packages/hidayat/api-docs)[ RSS](/packages/hidayat-api-docs/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-rest api documentation generator
========================================

[](#laravel-rest-api-documentation-generator)

This package provides an easy way of generating documentation for api's in laravel

` composer require hidayat/api-docs `

usage
=====

[](#usage)

Once install publish package using
`php artisan vendor:publish --provider="Hidayat\ApiDocs\RestApiDocServiceProvider"`

- once published you will have a config file in the `config/` directory named api\_docs which will have a sample of an endpoint documentation for one api you can use that sample to adds your other endpoints
- next paste the following code in your routes/web.php
- you can place it anywhere in other routes files as well as long as that file is loaded into your routes.
- `\Hidayat\ApiDocs\ApiDocsRoute::generateRoute();`
- This will create a route url `api_docs` visit this url and you will see the docs view.
- Once you run the publish command the view which is used by the package is also published to `resources/views/vendor/api_docs` folder you can do customization as you want in there.
- if you want to have a different url for the docs you can pass `url` to `\Hidayat\ApiDocs\ApiDocsRoute::generateRoute('custom-url');`which will be used as the url for the showing the docs instead of the default one.
- The style used by the view is also published to `public/vendor/api_docs`folder you can change styling as you want.
- **Note:**  This package scan all routes with prefix `api`other routes remain untouched.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  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)
