phar-io/composer-plugin
Archived proof-of-concept Composer plugin that adds phive:run and phive:info commands to integrate Phive with Composer (e.g., install phar tools like PHPUnit). Unsupported, likely insecure, and may not work with current Composer—do not use in production.
phar-io/composer-plugin) is a Composer plugin for handling PHAR archives, but its last release was in 2018 and the repo is archived. Laravel (v10+) and modern PHP (8.1+) ecosystems have evolved significantly since then, with native Composer 2.x and PHAR support being more stable and integrated.box/spout (for PHAR generation) or native Composer\Phar are more actively maintained.phar.io/manifest), so integration would require custom scripting (e.g., post-install hooks, custom Composer scripts).composer.json lifecycle events (e.g., post-install-cmd). Laravel projects already use Composer, so minimal friction exists for plugin installation.vendor/ or generate them during composer install, this could work—but modern Laravel prefers Composer autoloading over PHARs for dependencies.phar.io/manifest) would mitigate this.composer.json scripts (e.g., "post-install-cmd": ["vendor/bin/phar-plugin"]).bootstrap/app.php autoloading?composer dump-autoload?optimize commands?post-install-cmd scripts?laravel-new), PHARs could replace bin/ directories.phpunit/phpunit in PHAR form) might still use this.public/ or storage/ for these.box/spout or phar.io/manifest.composer require + post-install-cmd scripts.composer.json for existing PHAR dependencies.composer.json:
"extra": {
"installer-paths": {
"phars/={name}"
}
},
"scripts": {
"post-install-cmd": [
"vendor/bin/phar-plugin"
]
}
Composer\IO\BufferOutput deprecations).phar.io/manifest).| Component | Risk Level | Mitigation Strategy |
|---|---|---|
| Composer 2.x | High | Test with --ignore-platform-reqs if needed. |
| PHP 8.1+ | High | Fork or use a polyfill (e.g., nikic/php-parser). |
| Laravel 10 | Medium | Avoid conflicts with optimize commands. |
| Windows Support | Medium | PHARs can be finicky; test on CI. |
vendor/.composer.json scripts.composer require phar-io/composer-plugin:dev-main (if forking).composer install --no-dev in CI.composer audit).phar.io/manifest (active maintenance).composer install for large dependencies (single archive vs. many files).autoload if PHARs aren’t optimized (e.g., missing stub files).vendor/ increase binary size (may impact Docker layers).| Scenario | Impact | Recovery Plan |
|---|---|---|
| Plugin fails on PHP 8.1+ | Build breaks | Fork or switch to phar.io/manifest. |
| PHAR corruption | Broken CLI tools | Reinstall dependencies. |
| Composer 2.x API changes | Plugin stops working | Downgrade Composer or refactor. |
| Security vulnerability | Supply chain attack | Replace with a patched fork. |
How can I help you explore Laravel packages today?