between checks out two points in your git history, reads the lock files at each, and reports every package that differs. Where analyse looks at your working directory, between compares two committed states.

bash
whatsdiff between <from> <to>
Arguments
| Argument | Description |
|---|---|
<from> |
Starting commit |
<to> |
Ending commit |
bash
whatsdiff between abc123 def456
Example output
code
composer.lock between v1.0.0 and v2.0.0
โโ laravel/framework v11.0.0 โ v12.0.0 (15 releases)
โโ symfony/console v6.4.0 โ v7.0.0 (8 releases)
+ laravel/sanctum ^4.0
+ livewire/livewire ^3.0
ร deprecated/package ^1.0
What it does
- Checks out the
<from>reference and reads the lock files - Checks out the
<to>reference and reads the lock files - Compares the two states
- Prints every package that changed between them
When to use it
Code review. See what a branch did to your dependencies before you approve it, without reading a lock file diff.
Release notes. Work out which dependencies moved between two releases, and by how much.
Debugging. When something broke between two known-good points, the dependency list is often where the answer is.