2017 © Pedro Peláez
 

composer-plugin alert-on-composerlock-change

Composer plugin that alerts (in dev) that composer.lock changed and so the developer should run `composer install`

image

slam/alert-on-composerlock-change

Composer plugin that alerts (in dev) that composer.lock changed and so the developer should run `composer install`

  • Thursday, April 19, 2018
  • by Slam
  • Repository
  • 1 Watchers
  • 0 Stars
  • 636 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 121 % Grown

The README.md

Alert on composer.lock change...

...when commanding a git pull, git checkout or a git merge

Build Status Packagist, (*1)

Show an alert when composer.lock changed while moving between commits., (*2)

alert GIF, (*3)

Installation

To use this extension, require it in Composer:, (*4)

composer require --dev slam/alert-on-composerlock-change

WARNING: git hooks overridden !

To enable the warning both .git/hooks/post-merge and .git/hooks/post-checkout are overridden., (*5)

Where to use it

This is useful in development, you clone the repo and you'll automatically notified on composer.lock changes without custom hooks/code (after the first composer install of course)., (*6)

The alert is triggered also while moving between commits with git checkout., (*7)

Where NOT to use it

You should avoid relying on this in production, as you are supposed to have a dedicated strategy for deploy that involves much more than a plain git pull., (*8)

Also this isn't useful for a library, as libraries shouldn't commit the composer.lock., (*9)

Why not just run composer install?

This is intended to help developers be aware of what happened in the repo while they where sleeping (uh?). Developers are supposed to investigate how the dependencies changed, to be aware of them and, if needed, to discuss the changes and improve them. If everything happens under the hood, knowledge would be much slower to gain., (*10)

The Versions

19/04 2018

dev-master

9999999-dev

Composer plugin that alerts (in dev) that composer.lock changed and so the developer should run `composer install`

  Sources   Download

MIT

The Requires

  • php ^7.1.0
  • composer-plugin-api ^1.0.0

 

The Development Requires

by Filippo Tessarotto

19/04 2018

v1.0.0

1.0.0.0

Composer plugin that alerts (in dev) that composer.lock changed and so the developer should run `composer install`

  Sources   Download

MIT

The Requires

  • php ^7.1.0
  • composer-plugin-api ^1.0.0

 

The Development Requires

by Filippo Tessarotto