PHPackages                             ivankotut/exception-json-response - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ivankotut/exception-json-response

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

ivankotut/exception-json-response
=================================

v0.0.3(3y ago)05MITPHPPHP &gt;=8.1

Since Oct 13Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ivankoTut/exception-json-response)[ Packagist](https://packagist.org/packages/ivankotut/exception-json-response)[ RSS](/packages/ivankotut-exception-json-response/feed)WikiDiscussions master Synced 1mo ago

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

### Пакет позволяет отдавать ошибки в json формате

[](#пакет-позволяет-отдавать-ошибки-в-json-формате)

### Установка

[](#установка)

```
composer require "ivankotut/exception-json-response"

```

#### Настройки

[](#настройки)

Для более детальной конфигурации создайте файл настроек exception\_json\_response.yaml и укажите нужные параметры

#### Пример конфигурации

[](#пример-конфигурации)

```
exception_json_response:
  # вывод ошибки и стека (по умолчанию false)
  debug_mode: false

  # Content-Type === application/json (по умолчанию false)
  enable_only_application_json: false

  # Обрабатывать все исключения кроме исключенных (по умолчанию true)
  listen_all_exception: true

  # Дает возможность заменить текст ошибки
  replace_messages:
    - { errorClass: IvankoTut\ExceptionJsonResponse\Response\NotFoundError, message: 'Доступ запрещен'}

  # Исключения, которые будут игнорироваться
  exclude_exceptions:
    - App\Exception\FormValidationException
```

Примеры ответов:

С режимом `debug_mode:true`

```
{
  "type":"NotFoundError",
  "message":"No route found for \"GET http:\/\/localhost\/api\/test\"",
  "trace":[
    {
      "file":"\/var\/www\/vendor\/symfony\/event-dispatcher\/Debug\/WrappedListener.php",
      "line":115,
      "function":"onKernelRequest",
      "class":"Symfony\\Component\\HttpKernel\\EventListener\\RouterListener",
      "type":"->",
      "args":[
        [],
        "kernel.request",
        []
      ]
    },
    {"ОСТАЛЬНОЙ ТРЕЙС ОШИБКИ": ""}
  ]
}
```

С режимом `debug_mode:false`

```
{
  "type":"NotFoundError",
  "message":"Запрошенные данные не найдены"
}
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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 ~0 days

Total

3

Last Release

1306d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/943eb185f5425a0ff6fa1dee90c514d71002089b5353c37c86562a2715d04f5c?d=identicon)[ivankotut](/maintainers/ivankotut)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/ivankotut-exception-json-response/health.svg)

```
[![Health](https://phpackages.com/badges/ivankotut-exception-json-response/health.svg)](https://phpackages.com/packages/ivankotut-exception-json-response)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[apy/datagrid-bundle

Symfony Datagrid Bundle

502998.7k9](/packages/apy-datagrid-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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