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.
NotInstalledclass NotInstalled extends Logic implements DependencyError
Required for this action optional dependency is not installed on the system. The dependency can be PHP-extension, composer package, some plugin and etc.
throw new NotInstalled('mbstring', 'unicode strings'); // Required dependency "mbstring" for unicode string
__construct([string $dependency [, string $action [, $previous, $thrower])$dependency - the dependency name$action - action that requires the dependencygetDependency():stringgetAction():stringHow can I help you explore Laravel packages today?