birhanu / laradocs
Laravel API documentation generator
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/birhanu/laradocs
This package is auto-updated.
Last update: 2026-01-31 00:33:19 UTC
README
Team Members
| Name | ID |
|---|---|
| Ararsa Derese | ETS0152/13 |
| Birhanu Worku | ETS0279/13 |
| Biruk Mesfin | ETS0290/13 |
| Bisrat Kebere | ETS0306/13 |
| Biyaol Mesay | ETS0309/13 |
LaraDocs is a Laravel package that generates API documentation for your Laravel application. It provides both JSON and HTML formats for the documentation, making it easy to integrate and use.
Features
- Automatically generates API documentation for your Laravel application.
- Provides both JSON and HTML formats for the documentation.
- Customizable HTML output with a modern, attractive design.
- Easy to set up and use.
Installation
-
Install the package via Composer:
composer require birhanu/laradocs
-
Publish the configuration and view files:
php artisan vendor:publish --provider="Birhanu\Laradocs\LaradocsServiceProvider" --tag="config" php artisan vendor:publish --provider="Birhanu\Laradocs\LaradocsServiceProvider" --tag="views"
-
Add the service provider to your
config/app.phpfile (if not using auto-discovery):'providers' => [ // Other service providers... Birhanu\Laradocs\LaradocsServiceProvider::class, ],
Configuration
The configuration file config/laradocs.php allows you to customize the behavior of the package. Here are some of the key options:
enabled: Enable or disable the package.api_prefix: The prefix for the API documentation routes.default_format: The default format for the documentation (jsonorhtml).output_format: The format for the generated documentation files (jsonoryaml).output_path: The path where the generated documentation files will be saved.html_output: Enable or disable HTML output.
Usage
Access the documentation:
- JSON format: `http://your-app-url/api-docs/json`
- HTML format: `http://your-app-url/api-docs`
Customization
You can customize the HTML output by editing the Blade view file located at resources/views/vendor/laradocs/custom-ui.blade.php.
Testing
To run the tests, use the following command:
phpunit
License
LaraDocs is open-sourced software licensed under the MIT license.