PHPackages                             rayola/ferror - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. rayola/ferror

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

rayola/ferror
=============

A light Php error formatter

v1.0(3y ago)08MITPHP

Since Jul 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/EricCodeBJ/Ferror)[ Packagist](https://packagist.org/packages/rayola/ferror)[ RSS](/packages/rayola-ferror/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![](https://github.com/EricCodeBJ/Ferror/raw/3cb7e9ea734efa6a39630290e0773a82dbe4bc40/Ferror/Resources/assets/img/icons/logoFerror-circle.png?raw=true)](https://github.com/EricCodeBJ/Ferror/blob/3cb7e9ea734efa6a39630290e0773a82dbe4bc40/Ferror/Resources/assets/img/icons/logoFerror-circle.png?raw=true)

Ferror - A lightweight pretty Php error and exception viewer
============================================================

[](#ferror---a-lightweight-pretty-php-error-and-exception-viewer)

[![en](https://camo.githubusercontent.com/9687410941adb91c2f673c9d50ef38544f3e9a38a6b9f9367cac918a8d3e2a41/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d656e2d7265642e737667)](https://github.com/EricCodeBJ/Ferror/blob/master/readme.md)[![fr-ca](https://camo.githubusercontent.com/6f8042cd9eb5f34e69a85818703ada0af97df41583374431449c0e8b9a9576d5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c616e672d66722d63612e737667)](https://github.com/EricCodeBJ/Ferror/blob/master/readme.fr-ca.md)

Features
========

[](#features)

- ✅ Catch all errors and exceptions in your code
- ✅ Retrieves and displays code, line, file and error or exception message
- ✅ Ability to quickly copy the error or exception message for possible research
- ✅ Also displays a preview of the file at the detected error line
- ✅ Displays all global variables present in your code
- ✅ Also displays all the variables and constants that you had declared in your code
- ✅ Custom namespace to avoid class collision

Why use this
============

[](#why-use-this)

Every developer has run into errors in their code once and it's often a bit difficult to figure out what's wrong because of Php's error messages that are unformatted (all concatenated into one block) .

With Ferror, everything is well detailed and separated, so you can easily detect the error message, the erroneous line, the file at the base and much more. All this in order to easily debug your code and save time.

Because errors are important, because they must be well presented.

Installation &amp; Use
======================

[](#installation--use)

Ferror is available at [Packagist](https://packagist.org/) and can be installed via [Compose](https://getcomposer.org) with the following command

```
composer require rayola/ferror

```

Usage example
=============

[](#usage-example)

```
