Hooks - v1.2.1
Hooks Changelog
[1.2.1] - June 8, 2026
Added
- Laravel 13 support
illuminate/supportconstraint now accepts^13.0- PHP 8.3+ is required when installing on Laravel 13 (enforced by Laravel itself; PHP 8.2 remains supported on Laravel 11/12)
Changed
- Aligned
illuminate/supportconstraint to^11.0|^12.0|^13.0to match the actively tested matrix - Updated supported Laravel versions in README to 11.x, 12.x, and 13.x
Removed
- Dropped explicit declaration of support for Laravel < 11
- The previous
>=5.3constraint was overly permissive; the package was only ever tested against Laravel 10/11. Users on Laravel 10 or earlier should pin to^1.2.0.
- The previous
[1.2.0] - November 22, 2025
Added
- Laravel Boost AI guidelines integration
- Added
resources/boost/guidelines/core.blade.phpfor AI-assisted development - Comprehensive package documentation for Laravel Boost users
- Code examples for actions, filters, priorities, and Blade directives
- Added
- Laravel Pint code style support
- Added
laravel/pintpackage for PHP code formatting - Added
artisanpack-ui/code-style-pintpackage for ArtisanPackUI preset - Added
pint-setup.phpscript for generating Pint configuration - Added
pint.jsonconfiguration with ArtisanPackUI coding standards
- Added
- GitLab CI Pint code style job
- Automated code style checking using Pint in CI pipeline
- Configured as non-blocking (allow_failure: true)
Changed
- GitLab CI configuration standardized to PHP 8.4
- Updated build stage to use PHP 8.4 with Composer
- Updated test stage to use PHP 8.4
- Updated code-style stage to use PHP 8.4
- Added installation of git, unzip, and PHP zip extension in build stage
- Ensures consistent PHP version across all CI jobs
- Updated Symfony dependencies to v7.3.7 (security update)
- Fixed security advisory PKSA-365x-2zjk-pt47 in symfony/http-foundation
Development
- Improved CI/CD pipeline reliability
- Enhanced code quality tools with Pint integration
[1.1.0] - October 17, 2025
Added
- Action removal APIs:
Action::remove(string $hook, callable $callback, int $priority = 10): boolAction::removeAll(string $hook, int|false $priority = false): bool
- Filter removal APIs:
Filter::remove(string $hook, callable $callback, int $priority = 10): boolFilter::removeAll(string $hook, int|false $priority = false): bool
- Helper functions:
removeAction(),removeAllActions(),removeFilter(),removeAllFilters()
- Facade methods documented:
Action::remove(),Action::removeAll(),Filter::remove(),Filter::removeAll() - Unit tests for removal behaviors
- Documentation updates with examples and API references
[1.0.0] - October 16, 2025
Added
- Initial release of ArtisanPack UI Hooks package
- WordPress-style actions and filters system for Laravel applications
- Action hooks management with priority-based execution
Actionclass for registering and executing action hooks- Support for callback priorities (lower numbers execute first)
- Filter system for value transformation through callback chains
Filterclass for registering and applying filters- Chained value processing with multiple callbacks
- Helper functions for easy integration:
addAction(string $hook, callable $callback, int $priority = 10)- Register action callbacksdoAction(string $hook, mixed ...$args)- Execute action callbacksaddFilter(string $hook, callable $callback, int $priority = 10)- Register filter callbacksapplyFilters(string $hook, mixed $value, mixed ...$args)- Apply filter callbacks
- Laravel Facades for static access:
Actionfacade for action managementFilterfacade for filter management
- Blade directives for template integration:
@action('hook_name', $args...)- Execute actions in Blade views@filter('hook_name', $value, $args...)- Apply filters and echo results in Blade views
- Service providers with automatic Laravel package discovery:
HooksServiceProvider- Registers Action and Filter singletonsBladeDirectiveServiceProvider- Registers custom Blade directives
- Automatic facade alias registration for
ActionandFilter - PSR-4 autoloading with namespace
ArtisanPackUI\Hooks\ - Comprehensive test suite using Pest testing framework
- Full documentation with examples and usage guidelines
Requirements
- PHP 8.2 or higher
- Laravel 5.3+ (tested with Laravel 10.x and 11.x)
- Illuminate/Support package
Features
- Priority-based callback execution (lower numbers run first)
- Modular architecture supporting plugin-style extensions
- Clean separation of concerns for maintainable code
- Framework-native Laravel integration
- MIT license for open source usage