Skip to main content

Composer

Composer comes bundled with LaraEnv — you don't install it separately. It's auto-materialized on startup and lives under C:\laraenv\composer\.

Where it runs

Composer is available on PATH inside project terminals. It uses the project's active PHP version, so dependency resolution and scripts run against the right PHP.

LaraEnv also uses Composer when scaffolding Laravel projects (composer create-project) — see Creating projects.

Common commands

Open a project terminal and run Composer as usual:

composer install
composer require laravel/sanctum

Because Composer uses the project's PHP version, a project on PHP 7.4 and one on PHP 8.4 each resolve dependencies against their own runtime.

See also