metafox / scribe
Generate API documentation for humans from your Laravel codebase.✍
Fund package maintenance!
4.22.2
2025-11-05 16:04 UTC
Requires
- php: >=8.1
- ext-fileinfo: *
- ext-json: *
- ext-pdo: *
- erusev/parsedown: 1.7.4
- fakerphp/faker: ^1.23.1
- laravel/framework: ^9.0|^10.0|^11.0|^12.0
- league/flysystem: ^3.0
- mpociot/reflection-docblock: ^1.0.1
- nikic/php-parser: ^5.0
- nunomaduro/collision: ^6.0|^7.0|^8.0
- ramsey/uuid: ^4.2.2
- shalvah/clara: ^3.1.0
- shalvah/upgrader: >=0.6.0
- spatie/data-transfer-object: ^2.6|^3.0
- symfony/var-exporter: ^6.0|^7.0
- symfony/yaml: ^6.0|^7.0
Requires (Dev)
- dms/phpunit-arraysubset-asserts: ^v0.5.0
- laravel/legacy-factories: ^1.3.0
- league/fractal: ^0.20
- nikic/fast-route: ^1.3
- orchestra/testbench: ^7.0|^8.0|^v9.10.0|^10.0
- pestphp/pest: ^1.21|^2.0|^3.0
- phpstan/phpstan: ^2.1.5
- phpunit/phpunit: ^9.0|^10.0|^11.0
- spatie/ray: ^1.41
- symfony/css-selector: ^6.0|^7.0
- symfony/dom-crawler: ^6.0|^7.0
Replaces
This package is auto-updated.
Last update: 2026-05-24 08:54:00 UTC
README
Scribe helps you generate API documentation for humans from your Laravel codebase. See a live example at demo.scribe.knuckles.wtf.
Features
- Useful output:
- Pretty single-page HTML doc, with human-friendly text, code samples, and in-browser API tester ("Try It Out")
- Generates Postman collection and OpenAPI spec
- Smarts. Scribe can:
- extract request parameter details from FormRequests or validation rules
- safely call API endpoints to get sample responses
- generate sample responses from Eloquent API Resources or Transformers
- Customisable to different levels:
- Customise the UI by adjusting text, ordering, examples, or change the UI itself
- Add custom strategies to adjust how data is extracted
- Statically define extra endpoints or information that isn't in your codebase
👋 Scribe helps you generate docs automatically, but if you really want to make friendly, maintainable and testable API docs, there's some more things you need to know. So I made a course for you.🤗
Documentation
Check out the documentation at scribe.knuckles.wtf/laravel.
Contributing
Contributing is easy! See our contribution guide.
