Skip to main content

Crate composr

Crate composr 

Source

Modules§

auth
Auth resolution for dist downloads.
bench_fs
Synthetic filesystem benchmark for picking a fast staging surface.
binsetup
Install package binaries into vendor/bin/, generating proxy files that mirror Composer’s behavior closely enough that PHP CLIs (phpunit, pest, pint, etc.) work the same as if Composer had installed them.
bootstrap
Generate the autoload bootstrap files from scratch.
cache
classmap_cache
Per-package classmap cache.
composer_shim
Selective delegation to a real composer binary on the user’s PATH.
composr_config
Per-project composr configuration, read from composr.json in the project root. Separate from composer.json so we don’t stomp on what other tools / users put under extra.
config
diff
Compute the install/remove operations needed to bring vendor/ into the state the lock describes.
discover
Native implementation of Laravel’s package:discover artisan command.
dist_cache
On-disk cache of downloaded dist archives.
download
Async, parallel downloader for dist archives.
dump
dump-autoload core — same logic that used to live inline in main.rs, lifted into a library function so install can call it after extracting packages.
emit
extract
Extract a dist zip into the package’s final install path.
filter
Composer’s PSR-4 / PSR-0 admission rules for the optimized classmap.
install
Top-level install orchestrator.
installed
Read/write vendor/composer/installed.json and installed.php.
lock
Parser for composer.lock — the only data source install needs.
parse
pest_plugins
Native replacement for pestphp/pest-plugin’s post-autoload-dump hook.
php_json
PHP-compatible json_encode for the byte shapes Composer produces.
scripts
Run Composer-style scripts hooked to install lifecycle events.
spi
Native replacement for tbachert/spi’s pre-autoload-dump hook.
summary
Styled one-line summaries for composr install and the autoload step.
walk

Structs§

Options
Stats

Functions§

dump_autoload
Convenience helper used by the install pipeline: run dump-autoload with the same defaults as the CLI’s no-flag invocation, but with the dev flag chosen by the caller. Returns the dump stats so callers can surface them.