PHPackages                             zafarjonovich/yii-safe-exception - 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. zafarjonovich/yii-safe-exception

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

zafarjonovich/yii-safe-exception
================================

Yii safe exception

0.0.0.2(4y ago)460PHP

Since Jan 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/zafarjonovich/yii-safe-exception)[ Packagist](https://packagist.org/packages/zafarjonovich/yii-safe-exception)[ RSS](/packages/zafarjonovich-yii-safe-exception/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Yii safe exception
==================

[](#yii-safe-exception)

Assalomu aleykum. These components will help you hide your exception and save it in your Yii application.

---

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require zafarjonovich/yii-safe-exception

```

or add

```
"zafarjonovich/yii-safe-exception": "*"

```

to the require section of your `composer.json` file.

---

Package structure
-----------------

[](#package-structure)

Every exception will converts other specific type. Now this types have:

- Json: \\zafarjonovich\\PHPSafeException\\converter\\JsonConverter::class
- Xml: \\zafarjonovich\\PHPSafeException\\converter\\XMLConverter::class
- Array: \\zafarjonovich\\PHPSafeException\\converter\\ArrayConverter::class
- Text: \\zafarjonovich\\PHPSafeException\\converter\\TextConverter::class

Every converted exception will saves specific places. Now this places have:

- Database: \\zafarjonovich\\YiiSafeException\\saver\\DBSaver::class
- File: \\zafarjonovich\\YiiSafeException\\saver\\FileSaver::class
- Telegram bot: \\zafarjonovich\\YiiSafeException\\saver\\TelegramBotSaver::class

Each saver has a personal configuration, if they are not confugurated, Exception will not be saved

### Configurations

[](#configurations)

- TelegramBotSaver: token and chat\_ids
- FileSaver: filePath or pathGenerator

Usage
-----

[](#usage)

Add your app/config.php this component

```
