dedoc / scramble
Automatic generation of API documentation for Laravel applications.
Fund package maintenance!
romalytvynenko
Installs: 1 336 704
Dependents: 15
Suggesters: 0
Security: 0
Stars: 1 308
Watchers: 17
Forks: 124
Open Issues: 26
Requires
- php: ^8.1
- illuminate/contracts: ^10.0|^11.0
- myclabs/deep-copy: ^1.12
- nikic/php-parser: ^5.0
- phpstan/phpdoc-parser: ^1.0|^2.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- laravel/pint: ^v1.1.0
- nunomaduro/collision: ^7.0|^8.0
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-laravel: ^2.3
- phpunit/phpunit: ^10.5
- spatie/pest-plugin-snapshots: ^2.1
- dev-main
- v0.11.31
- v0.11.30
- v0.11.29
- v0.11.28
- v0.11.27
- v0.11.26
- v0.11.25
- v0.11.24
- v0.11.23
- v0.11.22
- v0.11.21
- v0.11.20
- v0.11.19
- v0.11.18
- v0.11.17
- v0.11.16
- v0.11.15
- v0.11.14
- v0.11.13
- v0.11.12
- v0.11.11
- v0.11.10
- v0.11.9
- v0.11.8
- v0.11.7
- v0.11.6
- v0.11.5
- v0.11.4
- v0.11.3
- v0.11.2
- v0.11.1
- v0.11.0
- v0.10.13
- v0.10.12
- v0.10.11
- v0.10.10
- v0.10.9
- v0.10.8
- v0.10.7
- v0.10.6
- v0.10.5
- v0.10.4
- v0.10.3
- v0.10.2
- v0.10.1
- v0.10.0
- v0.9.0
- v0.8.6
- v0.8.5
- v0.8.4
- v0.8.3
- v0.8.2
- v0.8.1
- v0.8.0
- v0.7.2
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.0
- v0.1.0
- v0.0.2
- v0.0.1
- v0.0.1-alpha.5
- v0.0.1-alpha.4
- v0.0.1-alpha.3
- v0.0.1-alpha.2
- v0.0.1-alpha.1
- dev-feature/shallow-analysis
- dev-feat/new-openapi-class-structure
- dev-226-docs-generation-fails-for-requests-that-utilise-custom-values
This package is not auto-updated.
Last update: 2024-12-20 10:15:39 UTC
README
Scramble
Scramble generates API documentation for Laravel project. Without requiring you to manually write PHPDoc annotations. Docs are generated in OpenAPI 3.1.0 format.
Warning Package is in early stage. It means there may be bugs and API is very likely to change. Create an issue if you spot a bug. Ideas are welcome.
Documentation
You can find full documentation at scramble.dedoc.co.
Introduction
The main motto of the project is generating your API documentation without requiring you to annotate your code.
This allows you to focus on code and avoid annotating every possible param/field as it may result in outdated documentation. By generating docs automatically from the code your API will always have up-to-date docs which you can trust.
Installation
You can install the package via composer:
composer require dedoc/scramble
Usage
After install you will have 2 routes added to your application:
/docs/api
- UI viewer for your documentation/docs/api.json
- Open API document in JSON format describing your API.
By default, these routes are available only in local
environment. You can change this behavior by defining viewApiDocs
gate.