PHPackages                             bushbaby/bsb-translate-controller-plugin - 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. bushbaby/bsb-translate-controller-plugin

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

bushbaby/bsb-translate-controller-plugin
========================================

BsbTranslateControllerPlugin is a ZF2 module that provides controller plugin to expose the translator.

1.0.2(12y ago)23.1k1MITPHPPHP &gt;=5.3.3

Since Oct 11Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bushbaby/BsbTranslateControllerPlugin)[ Packagist](https://packagist.org/packages/bushbaby/bsb-translate-controller-plugin)[ Docs](https://github.com/bushbaby/BsbTranslateControllerPlugin)[ RSS](/packages/bushbaby-bsb-translate-controller-plugin/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

BsbTranslateControllerPlugin
============================

[](#bsbtranslatecontrollerplugin)

BsbTranslateControllerPlugin is a small ZF2 module that registers a translator as controller plugin.

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

[](#installation)

BsbTranslateControllerPlugin works with Composer. To install it into your project, just add the following line into your composer.json file:

```
"require": {
    "bushbaby/bsb-translate-controller-plugin": "~1.0.0"
}

```

Then update your project by runnning composer.phar update.

Finally enable the module by adding BsbTranslateControllerPlugin in your application.config.php file.

Usage
-----

[](#usage)

Within an action controller you as plugins would use the translate and translatePlural view helpers.

Instead of using something ugly as;

```
$helper = $this->getServiceLocator()->get('viewhelpermanager')->get('translate');
echo $helper('message');

```

Use this;

```
echo $this->translate('message');

```

Instead of using something ugly as;

```
$helper = $this->getServiceLocator()->get('viewhelpermanager')->get('translateplural');
echo sprintf($helper('%s message', '%s messages', $number), $number);

```

Use this;

```
echo sprintf($this->translatePlural('%s message', '%s messages', $number), $number);

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~87 days

Total

3

Last Release

4428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e42bb1eb4035d280d16210974fa60d0dbddeba8a061abec926e5e081d097231d?d=identicon)[bushbaby](/maintainers/bushbaby)

---

Top Contributors

[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (12 commits)")[![CymruKakashi](https://avatars.githubusercontent.com/u/3475273?v=4)](https://github.com/CymruKakashi "CymruKakashi (2 commits)")

---

Tags

plugini18ntranslationmodulezf2

### Embed Badge

![Health badge](/badges/bushbaby-bsb-translate-controller-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bushbaby-bsb-translate-controller-plugin/health.svg)](https://phpackages.com/packages/bushbaby-bsb-translate-controller-plugin)
```

###  Alternatives

[imaginaerum/magento2-language-fr-fr

Magento2 French Language Pack (fr\_FR)

41738.1k2](/packages/imaginaerum-magento2-language-fr-fr)

PHPackages © 2026

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