hermes/dependencies
Hermes is a CLI dev tool that exports your project’s Composer and/or NPM dependencies to a markdown report. Run vendor/bin/hermes and use flags for composer, package, all, custom path, and configurable output location.
config/cache or vendor lifecycle.laravel/docs).laravel/framework) with transitive dependencies (e.g., symfony/console). Risk of misleading documentation if not filtered.package.json; ignores yarn.lock or pnpm-lock.yaml, which may cause inconsistencies in monorepos or hybrid PHP/JS projects.^8.0 vs ~8.0) or detect incompatible packages (e.g., doctrine/dbal vs laravel/tinker).README.md) or runtime validation (e.g., pre-deploy checks)?laravel/docs)?composer why or composer show for PHP dependencies?npm ls --all or tools like madge for dependency graphs?laravel/framework vs illuminate/support)?vendor/bin/hermes in phpunit or deploy stages)?composer-normalize, npm-check)?vendor symlinks or bootstrap/cache).composer why-not and npm ls for accuracy.composer.json scripts:
"scripts": {
"post-install-cmd": [
"@hermes generate --output=docs/dependencies.md"
]
}
- name: Generate Dependencies
run: vendor/bin/hermes --all --output=docs/dependencies.md
README.md or a docs/ folder.blade or markdown packages to render dependencies dynamically in the admin panel.platform-check).package.json exists; may fail in projects using yarn or pnpm without npm compatibility layers.laravel-mix or vite setups).composer why, npm-check).composer.json as a dev dependency:
composer require --dev hermes/dependencies
laravel/laravel).illuminate/*).dependencies.md file in the team’s onboarding process.--path, --output) could be deprecated without notice.package.json) require manual troubleshooting.vendor/ is corrupted).composer why-not <package> or composer show --tree.npm ls --all --depth=0 or madge --circular hermes-dependencies.| Scenario | Impact | Mitigation |
|---|---|---|
Missing composer.json |
CLI fails with error | Add pre-check in CI/CD. |
Missing package.json |
NPM dependencies skipped | Configure --composer-only flag. |
Corrupted vendor/ |
Composer dependency parsing fails | Validate composer.lock first. |
| Markdown output parsing fail | Documentation build errors | Use a fallback template. |
| Package abandonment | No future updates | Fork or switch to composer why. |
composer.json or CI.composer why.--composer, --package, --all) in the team wiki.# Generate and commit dependencies.md in PRs
git add docs/dependencies.md && git commit -m "chore: update dependencies"
How can I help you explore Laravel packages today?