Skip to content

Releases: igorsgm/laravel-git-hooks

2.0.1

24 Sep 18:50
Compare
Choose a tag to compare
  • Readme and Changelog updated

2.0.0

24 Sep 17:28
6050c21
Compare
Choose a tag to compare

✨ Major Features

🐳 Docker & Laravel Sail Support

  • Full Docker container execution for all code analyzers
  • Native Laravel Sail integration
  • Per-analyzer Docker configuration

🔧 Automatic Code Fixing

  • Auto-fix issues with optional prompts or fully automatic mode
  • Re-run validation after fixes
  • Support for all major analyzers

📦 New Code Analyzers

  • PHP CS Fixer - Modern PHP code style fixer
  • Rector - Automated refactoring and upgrades
  • PHP Insights - Code quality analysis

🎯 Key Improvements

  • Better Performance - Chunked file processing for large codebases
  • Enhanced Configuration - Full environment variable support
  • Improved DX - Better error handling, debug output, and strict types
  • File Analysis - Smarter file filtering and processing

⚠️ Breaking Changes

  • Requires Laravel 11+ (dropped Laravel 10)
  • Requires PHP 8.2+
  • Removed Enlightn package for now as this package is not supported by Enlightn team yet.
  • Environment variables renamed (removed LARAVEL_ prefix)

📋 Quick Migration

  1. Update environment variables (remove LARAVEL_ prefix)
  2. Review and enable new analyzers
  3. Configure Docker/Sail if using containers
  4. Enable auto-fix for smoother workflows

Props and thanks to @indy2kro for his great contributions.

1.3.0

13 Apr 07:32
c42045f
Compare
Choose a tag to compare

Github actions improvements, replace outdated libraries

  • Added multiple Github actions pipelines for each Laravel version supported (with supported PHP versions)
  • Bumped Node.js version in Github actions to 20 (including actions/setup-node@v4, actions/checkout@v4, actions/cache@v4)
  • Replaced set-output syntax (deprecated)
  • Updated package-lock.json with more recent versions
  • Replaced nunomaduro/larastan (deprecated) with larastan/larastan
  • Updated phpunit.xml to latest format
  • Replaced pestphp/pest-plugin-mock (deprecated) with Mockery
  • Fixed GitHelperTest.php test when running on more recent version of git

#29

1.2.0

28 Mar 01:18
aee71da
Compare
Choose a tag to compare

Laravel 11 Compatibility

1.1.2

04 Jan 23:05
b29c74b
Compare
Choose a tag to compare

Bug Fixes

  • Remove Pint defaults
  • Fixed Pint style issues

1.1.1

10 Jun 08:23
3a68f06
Compare
Choose a tag to compare

Bug Fixes

  • Code Analyzers fixed to consider only staged files of the commit

1.1.0

10 Jun 05:40
c21208b
Compare
Choose a tag to compare

Laravel Zero Support

  • Added artisan executable path configuration
    Customization of the artisan executable path is now possible in Laravel Zero applications, enabling greater flexibility.

  • Fixed hook stub template
    The hook stub template now utilizes the configured Artisan executable path instead of a hardcoded one, improving adaptability.

1.0.1

07 May 10:56
Compare
Choose a tag to compare
  • Package description updated

1.0.0

07 May 10:22
c58c47f
Compare
Choose a tag to compare
  • Initial release

0.1.1

07 May 06:38
Compare
Choose a tag to compare
0.1.1 Pre-release
Pre-release
  • Pre-release