PHPackages                             php-platform/errors - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. php-platform/errors

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

php-platform/errors
===================

v0.1.5(8y ago)02.6k7PHPPHP &gt;=5.4

Since Jan 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PHPPlatform/errors)[ Packagist](https://packagist.org/packages/php-platform/errors)[ Docs](https://github.com/PHPPlatform/errors)[ RSS](/packages/php-platform-errors/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (7)

PHP Platform Error and logging management
=========================================

[](#php-platform-error-and-logging-management)

This package provides uniform APIs for Error handling and logging

[![Build Status](https://camo.githubusercontent.com/0bc9b7b9a0912a56781698edcaca6f93220c7cb119274250476ca849c0b4bba5/68747470733a2f2f7472617669732d63692e6f72672f504850506c6174666f726d2f6572726f72732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/PHPPlatform/errors)

Introduction
------------

[](#introduction)

This Package mainly solves 3 problems

- Provides Exception types for all purposes, well categorized and with unique codes
- Common way to log all Exceptions and Errors
- Handles PHP System Errors and converts them into Exceptions

### Exception Types

[](#exception-types)

Following Exception types are available for Application developers to use.

- **PlatformException** `abstract` Parent of all exceptions , derived from Exception, all logging mechanism implemented here

    - **PersistenceException** `abstract` Parent of all persistant exceptions, these exceptions to be used by Persistant layer

        - *BadQueryException*
        - *DataNotFoundException*
        - *NoAccessException*
        - *NoConnectionException*
        - *NoDuplicateException*
        - *ReferenceIntegrityViolationException*
    - **ApplicationException** `abstract` Parent of all application exceptions, these exceptions to be used by Application/Business Layer

        - *BadInputException*
        - *Debug*
        - *NoAccessException*
        - *ProgrammingError*
    - **HttpException** `abstract` Parent of all Http exceptions, these exceptions to be used by View or Web Service Layers

        - *\_1XX* All exceptions for Informational Http Codes
        - *\_2XX* All exceptions for Success Http codes
        - *\_3XX* All exceptions for Redirectional Http codes
        - *\_4XX* All exceptions for Client Error Http codes
        - *\_5XX* All exceptions for Server Error Http codes
    - **SystemException** `abstract` Parent of all System Exceptions generated from handling [PHP System Errors](http://php.net/manual/en/errorfunc.constants.php)

        - *SystemError* For all Errors this Exception is created and thrown from ErrorHandler
        - *SystemWarning* For all Warnings, This exception is not thrown by the ErrorHandler , instead this is created for the purpose of logging

Configuration
-------------

[](#configuration)

Configurations available for this Package

> This Configuration is based on [PHPPlatform/config](https://github.com/PHPPlatform/config)

```
{
    "logs":{  // log file paths for each category of exceptions
        "Persistence":null,
	    "Application":null,
	    "Http":null,
	    "System":null
    },
    "traces":{ // trace file paths for each category of exceptions
        "Persistence":null,
	    "Application":null,
	    "Http":null,
	    "System":null
    }
}
```

To enable Error Handling , call error handling function as below

```
PhpPlatform\Errors\ErrorHandler::handleError();
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~67 days

Recently: every ~99 days

Total

7

Last Release

3052d ago

PHP version history (3 changes)v0.1.0PHP ~5.3

v0.1.1PHP &gt;=5.3

v0.1.4PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/92306cd4ec1342daeba6fb633880eb9907cdd022874ae39be11ab7ae274171c7?d=identicon)[Raaghu](/maintainers/Raaghu)

---

Top Contributors

[![Raaghu](https://avatars.githubusercontent.com/u/8255650?v=4)](https://github.com/Raaghu "Raaghu (14 commits)")

---

Tags

loggingexceptionerrorsphp-platform

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-platform-errors/health.svg)

```
[![Health](https://phpackages.com/badges/php-platform-errors/health.svg)](https://phpackages.com/packages/php-platform-errors)
```

###  Alternatives

[sentry/sentry-symfony

Symfony integration for Sentry (http://getsentry.com)

73764.5M84](/packages/sentry-sentry-symfony)[bugsnag/bugsnag-laravel

Official Bugsnag notifier for Laravel applications.

90335.7M37](/packages/bugsnag-bugsnag-laravel)[bugsnag/bugsnag

Official Bugsnag notifier for PHP applications.

56348.4M89](/packages/bugsnag-bugsnag)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32133.6M3](/packages/bugsnag-bugsnag-psr-logger)[rollbar/rollbar

Monitors errors and exceptions and reports them to Rollbar

33724.4M84](/packages/rollbar-rollbar)[analog/analog

Fast, flexible, easy PSR-3-compatible PHP logging package with dozens of handlers.

3511.6M24](/packages/analog-analog)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
