Skip to main content

Crate composer_installers

Crate composer_installers 

Source
Expand description

Native reimplementations of the declarative Composer install plugins that PHP projects (Magento / Mage-OS especially) depend on. This crate never runs the PHP plugins or Composer scripts — it reproduces their declarative on-disk effect natively. Every input lives in composer.json, which is what makes a native port possible.

  • paths — composer/installers. A generic package-type → install-path router (e.g. magento-theme → app/design/frontend/{$name}/, wordpress-plugin → wp-content/plugins/{$name}/), with root extra.installer-paths overrides. Pure relocation; no copying.

  • deploy — magento/magento-composer-installer. A magento2-component package (canonically magento/magento2-base) declares an extra.map of [source, dest] pairs copied into the project root (this is how index.php, pub/, the app/etc/* skeleton land) plus an extra.chmod list of permission masks. Also generates app/etc/vendor_path.php, which Magento’s bootstrap reads to locate vendor/.

  • laravel — Laravel’s post-autoload-dump package discovery: writes the bootstrap/cache/packages.php manifest the framework would otherwise generate via Illuminate\Foundation\ComposerScripts::postAutoloadDump.

Re-exports§

pub use deploy::ChmodEntry;
pub use deploy::DeployPlan;
pub use deploy::DeployStats;
pub use deploy::VENDOR_PATH_PHP;
pub use deploy::apply_deploy;
pub use deploy::plan_deploy;
pub use laravel::PACKAGES_CACHE;
pub use laravel::STALE_CACHES;
pub use laravel::blocking_post_autoload_dump;
pub use laravel::build_package_manifest;
pub use laravel::clear_compiled;
pub use laravel::only_reproduced_scripts;
pub use laravel::render_packages_php;
pub use paths::InstallerPaths;
pub use paths::install_path;
pub use paths::install_path_relative_to_repo;
pub use paths::unsupported_framework;

Modules§

deploy
magento/magento-composer-installer — native deploy.
laravel
Laravel package discovery — native reimplementation.
paths
composer/installers — native install-path routing.