phpdocumentor/unified-asset-installer
Composer custom installer for phpDocumentor assets. Installs packages of type phpdocumentor-template into /data/template instead of /vendor so templates land where phpDocumentor expects them. Intended for template authors; plugin support is planned.
phpdocumentor assets (templates/plugins), addressing a niche but critical need for non-standard installation paths (/data/template instead of /vendor).phpdocumentor for API/docs generation).phpdocumentor-related projects unless extended for broader use (e.g., phpdocumentor-plugin type, as noted in the TODO).composer.json with "type": "phpdocumentor-template" (or future phpdocumentor-plugin).phpdocumentor/unified-asset-installer.phpdocumentor-plugin type).phpdocumentor for documentation./data/template).mix/vite for assets, or custom Composer scripts)?phpdocumentor a hard requirement, or could another tool (e.g., robo, dep for docs) suffice?laravel-theme)?post-install-cmd) be simpler than a custom installer?public_path() vs. /data/template)?/data/template).phpdocumentor for docs, this could decouple asset paths from /vendor.require_once).phpdocumentor is the only tool requiring this.composer.json with "type": "phpdocumentor-template" and verify installation.storage_path('app/data/template')).composer.json:
"require": {
"phpdocumentor/unified-asset-installer": "^1.0"
}
phpdocumentor packages with "type": "phpdocumentor-template"./vendor)."scripts": {
"post-install-cmd": [
"php artisan vendor:publish --tag=phpdocumentor-assets --force"
]
}
public_path() vs. /data/template) must be handled manually./data/template vs. Laravel’s storage_path())..gitignore, deployment scripts).phpdocumentor-plugin type).storage_path() usage).phpdocumentor with non-standard paths.phpdocumentor).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Composer custom installer deprecation | Package breaks in future Composer | Switch to custom scripts or symlinks. |
| Path resolution issues | Assets not found at runtime | Validate paths in CI/CD. |
| Abandoned package | Security/unpatched vulnerabilities | Fork and maintain. |
| Laravel path assumptions | Conflicts with public_path() etc. |
Explicitly map /data/template to Laravel paths. |
phpdocumentor asset structure./data/template?").composer.json for new phpdocumentor packages.How can I help you explore Laravel packages today?