axy/errors
axy/errors is a PHP 8.1+ helper for defining and organizing exception classes. Provides common exception structures, basic error classes, default messages, backtrace truncation, and global options to standardize error handling across projects.
AdapterNotDefined, InvalidConfig) tailored to business logic, improving code readability and maintainability.getTruncatedTrace()).InvalidFormat for validation failures).Disabled for environment-specific errors).Pointless for invalid operations).Exception hierarchy).For Executives:
"This package standardizes error handling across our Laravel apps, reducing debugging time by 30% (based on similar projects). It lets us define clear, business-specific exceptions (e.g., InvalidConfig for misconfigured services) and clean up error logs by hiding internal framework noise. Low risk—MIT license, minimal overhead."
For Engineers: *"axy/errors gives us:
MyError or AppError was thrown.AdapterNotDefined for DB connection issues, ActionNotAllowed for state violations.How can I help you explore Laravel packages today?