code-lts/doctum
Doctum for Laravel: generate versioned API documentation for your PHP codebase with a clean, searchable HTML output. Supports configuration, theming, and multi-version docs, making it easy to publish and maintain docs for packages and applications.
@category tag (v5.6.0) enhances logical grouping of endpoints (e.g., auth, payments), improving navigation in tools like Swagger UI.@category tags enable better tooling integration (e.g., Swagger UI’s tag-based filtering).@category tags add zero-config grouping for routes, reducing manual Markdown maintenance. PHPStan parsing (v5.6.0) may alter error reporting (see Key Questions).| Risk Area | Severity | Mitigation |
|---|---|---|
| PHP 8.1+ Requirement | High | Audit CI/CD and local dev environments; upgrade PHP if <8.1. |
| PHPUnit/Symfony Breaking Changes | Medium | Update composer.json constraints; test with PHPUnit 10+ and Symfony 5.4+. |
| PHPStan Parsing Changes | Medium | Validate doc generation output; adjust CI checks for new error formats. |
| Route Cache Conflicts | Low | Clear route cache pre-generation (php artisan route:clear). |
| Annotation Inconsistency | Medium | Enforce PSR-12 + custom PHPDoc via PHPStan rules (now supported natively). |
@category tags be mapped to Swagger UI/Redoc (e.g., via tags field in OpenAPI)?@category tags trigger incremental regeneration for large APIs?@category tags enable Swagger UI/Redoc grouping without manual Markdown edits.@param).phpstan checks to CI to catch annotation issues early.@category tags are missing for critical endpoints.@category tags on a single module (e.g., /api/v1/auth).composer.json to PHP 8.1+, PHPUnit 10+, Symfony 5.4+.@category tags for logical grouping in docs.composer update to pull v5.6.0.swagger-cli.| Component | Compatibility | Workaround |
|---|---|---|
| PHP Versions | Drops 7.4, 8.0; requires 8.1+. | Upgrade PHP or use v5.5.4 for legacy support. |
| PHPUnit | Drops 7/8; supports 10–12. | Update tests or pin to v5.5.4. |
| Symfony | Drops 3.4–5.3; supports 5.4+. | Use symfony/* v5.4+ or downgrade Doctum. |
| php-parser | Requires v5; may break custom parsers. | Update or isolate parsing logic. |
| Laravel Versions | Tested with Laravel 8+ (PHP 8.1+). | No workaround; upgrade Laravel. |
| Custom Annotations | PHPStan parsing may change error reporting. | Review CI validation rules post-upgrade. |
composer.json to current versions (pre-upgrade).docs/ directory).composer require php:^8.1 phpunit/phpunit:^10 symfony/*:^5.4
@category to a route (e.g., @category Auth).php artisan doctum:generate.tags field.@category groupings.@category tags reduce manual grouping in Markdown/OpenAPI.@param).phpstan to CI for annotation validation.doctum.php remains unchanged; version pinning in composer.json mitigates drift.phpunit.xml).error_reporting(E_ALL) in doctum.php for debugging.@category in OpenAPI: Verify tags field in generated openapi.json.DOCTUM_DEBUG=true for verbose logs.php artisan doctum:validate to catch OpenAPI schema errors.How can I help you explore Laravel packages today?