Skip to content

davidrjonas/composer-lock-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

composer-lock-diff

See what packages have changed after you run composer update by comparing composer.lock to the the git HEAD.

Requires:

  • php >= 5.3

There are no other dependencies.

Install

composer global require davidrjonas/composer-lock-diff:^1.0@dev

Or just copy the 'composer-lock-diff' to /usr/local/bin.

Usage

composer update
# don't commit yet!
composer-lock-diff

Or from vim, to insert the output into the commit message, type :r!composer-lock-diff.

Options

  • --path, -p: Base to with which to prefix paths. Default "./"
  • --from: The file^, git ref, or git ref with filename to compare from (HEAD:composer.lock)
  • --to: The file^, git ref, or git ref with filename to compare to (composer.lock)
  • --md: Markdown table output
  • --json: json output
  • --pretty: pretty output when combined with --json (>=5.4 only)

^ File includes anything available as a protocol stream wrapper such as URLs.

Example Table Output

+----------------------------------+------------+---------+
| Production Changes               | From       | To      |
+----------------------------------+------------+---------+
| guzzlehttp/guzzle                | 6.2.0      | 6.2.1   |
| hashids/hashids                  | 1.0.5      | 1.0.6   |
| laravel/framework                | v5.1.27    | v5.1.44 |
| league/flysystem                 | 1.0.16     | 1.0.27  |
| monolog/monolog                  | 1.17.2     | 1.21.0  |
| symfony/polyfill-mbstring        | NEW        | v1.2.0  |
+----------------------------------+------------+---------+

+-----------------------------------+-----------+------------+
| Dev Changes                       | From      | To         |
+-----------------------------------+-----------+------------+
| behat/behat                       | v3.0.15   | v3.2.1     |
| behat/gherkin                     | v4.4.1    | v4.4.4     |
| behat/mink                        | v1.7.0    | v1.7.1     |
| behat/mink-browserkit-driver      | v1.3.0    | v1.3.2     |
| behat/mink-extension              | v2.1.0    | v2.2       |
| behat/mink-selenium2-driver       | v1.3.0    | v1.3.1     |
| mockery/mockery                   | 0.9.4     | REMOVED    |
+-----------------------------------+-----------+------------+

Markdown Table

Raw

| Production Changes               | From       | To      |
|----------------------------------|------------|---------|
| guzzlehttp/guzzle                | 6.2.0      | 6.2.1   |
| hashids/hashids                  | 1.0.5      | 1.0.6   |
| laravel/framework                | v5.1.27    | v5.1.44 |
| league/flysystem                 | 1.0.16     | 1.0.27  |
| monolog/monolog                  | 1.17.2     | 1.21.0  |
| symfony/polyfill-mbstring        | NEW        | v1.2.0  |

| Dev Changes                       | From      | To         |
|-----------------------------------|-----------|------------|
| behat/behat                       | v3.0.15   | v3.2.1     |
| behat/gherkin                     | v4.4.1    | v4.4.4     |
| behat/mink                        | v1.7.0    | v1.7.1     |
| behat/mink-browserkit-driver      | v1.3.0    | v1.3.2     |
| behat/mink-extension              | v2.1.0    | v2.2       |
| behat/mink-selenium2-driver       | v1.3.0    | v1.3.1     |
| mockery/mockery                   | 0.9.4     | REMOVED    |

Rendered

Production Changes From To
guzzlehttp/guzzle 6.2.0 6.2.1
hashids/hashids 1.0.5 1.0.6
laravel/framework v5.1.27 v5.1.44
league/flysystem 1.0.16 1.0.27
monolog/monolog 1.17.2 1.21.0
symfony/polyfill-mbstring NEW v1.2.0
Dev Changes From To
behat/behat v3.0.15 v3.2.1
behat/gherkin v4.4.1 v4.4.4
behat/mink v1.7.0 v1.7.1
behat/mink-browserkit-driver v1.3.0 v1.3.2
behat/mink-extension v2.1.0 v2.2
behat/mink-selenium2-driver v1.3.0 v1.3.1
mockery/mockery 0.9.4 REMOVED

Contributors

Thanks to everyone who has shared ideas and code! In particular,

About

See what has changed after a composer update

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 10