Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Documenter Laravel Package

endroid/documenter

endroid/documenter generates technical documentation automatically from your source code, using annotations to include resources in class diagrams, object descriptions, and other generated output. Install via Composer, with optional Symfony auto-wiring support.

View on GitHub
Deep Wiki
Context7

Endroid Documenter

Frequently asked questions about Documenter
What is endroid/documenter used for in a Laravel project?
endroid/documenter is a build-time documentation generator that reads annotated PHP source files and produces technical documentation such as class diagrams and object descriptions. It is not a runtime dependency, so it belongs in require-dev and should run in CI or a local pre-commit workflow. Laravel-specific integration is not documented, so expect to hand-wire the workflow rather than rely on framework auto-discovery.
How do I install endroid/documenter with Composer?
Install it with composer require endroid/documenter, or preferably composer require --dev endroid/documenter because it is a development and CI tool. Symfony users may get service auto-wiring through the endroid/installer package, with configuration files in the .install/symfony folder. Laravel users do not have documented auto-wiring and should plan for manual configuration or a custom script.
Does endroid/documenter support Laravel out of the box?
There is no documented Laravel integration in the README. The only framework-specific guidance mentions Symfony auto-wiring and configuration under .install/symfony. The package can be installed in a Laravel codebase, but the service wiring, command invocation, and documentation output workflow would need to be assembled manually and tested first.
What output formats does endroid/documenter generate?
The output format is not documented in the README, which only says it generates class diagrams, object descriptions, and similar artifacts. It is not clear whether the tool emits Mermaid, PlantUML, Graphviz, HTML, Markdown, or another format. Before adopting it, install it in a spike branch and inspect whether the generated files are commit-friendly and reviewable as diffs.
Is endroid/documenter safe to use in production?
It is a build-time tool that sits outside the request path, so it should not be part of the deployable production artifact. Install it with --dev and run it only in CI or local documentation jobs; a failure should be contained to documentation generation. The larger risk is engineering time and upgrade maintenance, not production runtime behavior.
How does endroid/documenter use annotations?
The package says you use provided annotations to include resources in generated class diagrams and object descriptions. However, the README does not document the annotation vocabulary, syntax, or examples, so developers must read the source or experiment to learn it. Consider whether adding tooling-only annotations to application classes fits your codebase conventions.
Can endroid/documenter parse PHP 8 attributes instead of docblock annotations?
That is not stated in the available documentation. The README uses annotation terminology and does not describe the parsing layer, so it is unclear whether it uses reflection, nikic/php-parser, Doctrine annotations, or PHP 8 attributes. Verify PHP 8.2+ compatibility and attribute support directly in the source before relying on it.
Is endroid/documenter actively maintained?
The package is by a credible and prolific PHP maintainer, but this specific project shows low adoption signals such as one star and no identified dependents. Its maturity label is readme, the Usage section is an ellipsis, and the CI badge points at the wrong repository, so current build status cannot be confirmed from the README. The versioning statement also warns that backwards-compatible changes will be kept to a minimum, meaning you own upgrade testing.
What are alternatives to endroid/documenter for PHP documentation?
Alternatives include phpDocumentor, IDE-native diagramming, phpstan tooling for model understanding, and LLM-assisted repository summarization. Because endroid/documenter has limited documentation and adoption, compare alternatives on output diffability, Laravel fit, and ongoing annotation authoring cost. Use an incumbent tool unless you specifically need its annotation-driven diagrams.
How should I test endroid/documenter before adopting it in Laravel?
Create a spike branch, install the package with --dev, and run it against a small set of annotated classes in your Laravel codebase. Inspect the generated output format, confirm whether files can be committed and reviewed as diffs, and verify behavior on your PHP version. If useful, add the command to a CI documentation job and lock the package version while monitoring upgrades.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums