This composer plugin will create hashes of the original template in published templates after a composer update.
This way you have a clear indication that a template you have overwritten has been changed.
It will add a {{-- vendor-hash:VENDOR_FILE_MD5_HASH --}} comment to the top of your blade files.
It will use the views publishables for this so make sure your views are publishable under the views tag.
composer require (--dev) rapidez/composer-template-diff-pluginYou can also run manually update the hashes with:
composer update-vendor-hashes`This will also automatically run after updating any packages.
Automatic execution (after composer update) can be disabled explicitly with:
RAPIDEZ_TEMPLATE_DIFF_DISABLED=1When RAPIDEZ_TEMPLATE_DIFF_DISABLED is not set, automatic execution is enabled only when APP_ENV is local
Manual execution with composer update-vendor-hashes always runs and does not use these automatic plugin toggle rules.
GNU General Public License v3. Please see License File for more information.