PHPackages                             coldume/translated-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. [Localization &amp; i18n](/categories/localization)
4. /
5. coldume/translated-exception

ActiveLibrary[Localization &amp; i18n](/categories/localization)

coldume/translated-exception
============================

Automatic exception message translation

v1.0.0(11y ago)235.0k—3.3%3MITPHPPHP &gt;=5.4.0

Since Oct 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/coldume/translated-exception)[ Packagist](https://packagist.org/packages/coldume/translated-exception)[ Docs](https://github.com/coldume/translated-exception)[ RSS](/packages/coldume-translated-exception/feed)WikiDiscussions develop Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (3)

TranslatedException
===================

[](#translatedexception)

[![Build Status](https://camo.githubusercontent.com/5199c09665cefc583cac2c6b26632e6ca61b39cc269cf170d2a19f6a875b8faa/68747470733a2f2f7472617669732d63692e6f72672f636f6c64756d652f7472616e736c617465642d657863657074696f6e2e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/coldume/translated-exception)

Depict
------

[](#depict)

Previously:

```
+-------------+      'hello' received
| Client side | getMessage() | ----+
+---------------------------------+

```

Now:

```
+-------------+       'bonjour' received
| Client side |  | locale: "fr"        |   |
| TranslatedException | getMessage() | ------------------+
+---------------------------------+

```

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

[](#installation)

Simply add a dependency on coldume/translated-exception to your project's composer.json file:

```
{
    "require": {
        "coldume/translated-exception": "~1.0"
    }
}
```

Usage
-----

[](#usage)

```
use TranslatedException\TranslatedException;

$options = [
    'locale'    => 'fr',
    'cache_dir' => __DIR__.'/foo',
    'debug'     => true,
];
TranslatedException::init($options);
TranslatedException::addResourceDir(__DIR__.'/bar');
try {
    throw new TranslatedException('foo', 'hello.%name%', ['%name%' => 'foo']);
} catch (TranslatedException $e) {
    echo $e->getMessage();
}
```

Resources
---------

[](#resources)

- Symfony translation component.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

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

4270d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03bb708a851f8508f51406675115f531a0e39f2d2c6cca292d6144635a207bd4?d=identicon)[coldume](/maintainers/coldume)

---

Top Contributors

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

---

Tags

translationexception

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/coldume-translated-exception/health.svg)

```
[![Health](https://phpackages.com/badges/coldume-translated-exception/health.svg)](https://phpackages.com/packages/coldume-translated-exception)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[symfony/crowdin-translation-provider

Symfony Crowdin Translation Provider Bridge

13558.9k1](/packages/symfony-crowdin-translation-provider)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

2411.8k](/packages/perplorm-perpl)

PHPackages © 2026

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