Config & utilities
composer-installers
Native reimplementation of declarative Composer install plugins — composer/installers (package-type to install-path routing), magento/magento-composer-installer (extra.map copy + chmod + vendor_path.php), and Laravel post-autoload-dump discovery. Reproduces their on-disk effect without running PHP.
From crates.io
Version 0.2.0
Updated Nov 19, 2026
684 downloads
Install
Run this in your project folder. cargo add composer-installers
composer-installers
Native Rust reimplementation of the declarative Composer install plugins that PHP projects (Magento / Mage-OS especially) rely on. It reproduces their on-disk effect — without running PHP, the plugins, or any Composer script.
Part of composer-client.
What it covers
composer/installers— a generic package-type→ install-path router (magento-theme→app/design/frontend/{$name}/,wordpress-plugin→wp-content/plugins/{$name}/, Drupal / Shopware / PrestaShop, …), honoring rootextra.installer-pathsoverrides. Pure relocation; no copying.magento/magento-composer-installer— amagento2-componentpackage (canonicallymagento/magento2-base) declares anextra.mapof[source, dest]pairs copied into the project root (index.php,pub/, theapp/etc/*skeleton), plus anextra.chmodlist; also generatesapp/etc/vendor_path.php.- Laravel
post-autoload-dump— writes thebootstrap/cache/packages.phppackage discovery manifest the framework would otherwise generate.
Every input lives in composer.json, which is what makes a native, PHP-free port possible.