Releases: igorsgm/laravel-git-hooks
Releases · igorsgm/laravel-git-hooks
2.0.1
2.0.0
✨ 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
- Update environment variables (remove
LARAVEL_
prefix) - Review and enable new analyzers
- Configure Docker/Sail if using containers
- Enable auto-fix for smoother workflows
Props and thanks to @indy2kro for his great contributions.
1.3.0
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
1.2.0
1.1.2
1.1.1
1.1.0
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.