oihana/php-exceptions

dev-main 2025-08-13 17:47 UTC

This package is auto-updated.

Last update: 2025-08-13 17:47:28 UTC


README

Oihana Php Exceptions

A curated set of reusable custom exception classes for PHP

Latest Version
Total Downloads
License

Oihana PHP Exceptions is a lightweight, framework-agnostic library providing a collection of well-defined exception classes that extend PHPโ€™s native Exception class.

Each exception type is designed to represent a clear and specific error scenario, making your error handling more expressive, consistent, and easier to maintain.

๐Ÿ“š Documentation

Full project documentation is available at:

๐Ÿ“ฆ๏ธ Installation

Requires PHP 8.4+

Install via Composer:

composer require oihana/php-exceptions

โœจ Features

  • ๐Ÿ›  Ready-to-use exception classes for common application errors.
  • ๐Ÿงฉ Extends the standard Exception class (or RuntimeException, InvalidArgumentException, etc. where relevant).
  • ๐Ÿ” Improves code readability and error semantics.
  • โšก Lightweight with zero external dependencies.
  • ๐Ÿ“ฆ Easily integrable in any PHP project or framework.

โœ… Running Unit Tests

To run all tests:

$ composer test

๐Ÿงพ License

This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).

๐Ÿ‘ค About the author