Download the PHP package litepie/actions without Composer
On this page you can find all versions of the php package litepie/actions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download litepie/actions
More information about litepie/actions
Files in litepie/actions
Package actions
Short Description A comprehensive Laravel Actions package for implementing the Action pattern with validation, events, and caching
License MIT
Informations about the package actions
๐ Litepie Actions - Advanced Laravel Action Pattern Package
A comprehensive Laravel package for implementing the Action pattern with advanced features including authorization, validation, caching, sub-action orchestration, form management, event handling, and comprehensive logging.
โจ Features
๐ฏ Core Functionality
- Action Pattern Implementation - Clean, testable business logic organization
- Multiple Action Types - BaseAction, StandardAction, CompleteAction
- Trait-Based Architecture - Mix and match functionality as needed
- Result Objects - Standardized success/failure handling
๐ Authorization & Security
- Gate-Based Authorization - Laravel gate integration
- User Context Tracking - Full user authentication support
- Permission Checking - Automatic authorization validation
โ Validation & Forms
- Laravel Validator Integration - Built-in validation support
- Dynamic Form Generation - Auto-generate forms from actions
- Custom Validation Rules - Flexible validation configuration
- Form-Action Integration - Seamless form and validation flow
๐ Sub-Actions & Orchestration
- Sub-Action Execution - Execute related actions automatically
- Conditional Logic - Run sub-actions based on conditions
- Before/After Hooks - Control execution timing
- Error Handling - Continue or fail based on configuration
๐ง Notifications & Events
- Automatic Notifications - Send notifications on action completion
- Laravel Events - Fire events during action lifecycle
- Multiple Recipients - Notify different user groups
- Queue Integration - Async notification delivery
๐ Logging & Auditing
- Comprehensive Logging - Full action execution tracking
- ActionLog Model - Database storage with relationships
- Rich Context - User, IP, timestamps, properties
- Searchable History - Query and filter action logs
โก Performance & Scalability
- Result Caching - Cache action results for performance
- Async Execution - Queue-based background processing
- Batch Processing - Execute multiple actions efficiently
- Pipeline Support - Chain actions with middleware
- Retry Logic - Automatic retry with exponential backoff
๐๏ธ Advanced Features
- Action Manager - Centralized action registration and execution
- Middleware Support - Rate limiting, logging, custom middleware
- Conditional Actions - Execute different actions based on conditions
- Metrics Collection - Execution time and memory tracking
- Helper Functions - Convenient global helper functions
๐ฆ Installation
Install the package via Composer:
Publish the configuration file:
Run the migrations to create the action logs table:
๐ Quick Start
Creating Your First Action
Generate a new action using the Artisan command:
This creates a basic action class:
Basic Usage
Fluent Interface
๐ Action Types
BaseAction - Foundation Class
The minimal action class with core functionality:
StandardAction - Common Use Case
Includes authorization, validation, and logging:
CompleteAction - Full-Featured
Includes all available traits for complex workflows:
๐ญ Traits System
Mix and match functionality using traits:
Available Traits
- AuthorizesActions - Gate-based authorization
- ExecutesSubActions - Sub-action orchestration
- HandlesNotificationsAndEvents - Notification and event management
- LogsActions - Comprehensive action logging
- ManagesForms - Dynamic form generation
- HasValidation - Laravel validation integration
- HasCaching - Result caching capabilities
- HasEvents - Event firing support
- HasMetrics - Performance metrics collection
Custom Action with Specific Traits
๐ Sub-Actions
Execute related actions automatically with conditional logic:
๐ Form Management
Generate dynamic forms from your actions:
๐ Action Manager
Centrally manage and execute actions:
๐ Batch Processing
Execute multiple actions efficiently:
๐ Pipeline Processing
Chain actions with middleware:
๐ฏ Conditional Actions
Execute different actions based on conditions:
๐ก๏ธ Middleware
Add middleware for cross-cutting concerns:
๐ Caching
Cache action results for improved performance:
๐ Retry Logic
Handle failures with automatic retry:
โก Async Execution
Execute actions in the background:
๐ Logging & Auditing
Track all action executions:
๐ง Configuration
Customize the package behavior:
๐จ Helper Functions
Convenient global functions:
๐งช Testing
The package includes comprehensive tests and testing utilities:
๐ Advanced Examples
Complex E-commerce Order Processing
Batch User Import with Error Handling
๐ค Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
๐ License
The MIT License (MIT). Please see License File for more information.
๐ Credits
๐ Support
- Documentation: Full Documentation
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
Built with โค๏ธ by the Litepie Team
All versions of actions with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/validation Version ^11.0|^12.0
illuminate/cache Version ^11.0|^12.0
illuminate/events Version ^11.0|^12.0