PHPackages                             savinmikhail/symfony-translatable-exceptions - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. savinmikhail/symfony-translatable-exceptions

ActivePsalm-plugin[Localization &amp; i18n](/categories/localization)

savinmikhail/symfony-translatable-exceptions
============================================

Make sure there's no hardcoded exception messages, only translated ones

v0.0.1(1y ago)0338MITPHPPHP ^8.2

Since Nov 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/savinmikhail/symfony-translatable-exceptions)[ Packagist](https://packagist.org/packages/savinmikhail/symfony-translatable-exceptions)[ RSS](/packages/savinmikhail-symfony-translatable-exceptions/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (7)Versions (2)Used By (0)

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

[](#installation)

```
composer require --dev savinmikhail/symfony-translatable-exceptions
```

Usage
-----

[](#usage)

In your `psalm.xml` add the following lines

```

```

Output
------

[](#output)

```
ERROR: InvalidArgument - src/Service/Extractor/WhlExtractor.php:33:40 - Avoid hardcoding exception messages, use a translation mechanism instead. (see https://psalm.dev/004)
            throw new RuntimeException('File upload required.');
```

To fix this, we need to use

```
throw new RuntimeException(this->translator->trans('error.file_upload_required'));
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

585d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b875f06f4a5b59fb1c051d348aee7c06c32fa04277ac9dfef77a1f01a72ebc87?d=identicon)[Savin Mikhail](/maintainers/Savin%20Mikhail)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/savinmikhail-symfony-translatable-exceptions/health.svg)

```
[![Health](https://phpackages.com/badges/savinmikhail-symfony-translatable-exceptions/health.svg)](https://phpackages.com/packages/savinmikhail-symfony-translatable-exceptions)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)

PHPackages © 2026

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