PHPackages                             colourbox-account/i18n - 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. colourbox-account/i18n

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

colourbox-account/i18n
======================

Internalization tool by Colourbox for PHP

v1.2.0(3y ago)05.9kApache-2.0PHPPHP ^5.3.0 || ^7.0 || ^8CI failing

Since Jan 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ColourboxDevelopment/composer-translation-tool)[ Packagist](https://packagist.org/packages/colourbox-account/i18n)[ Docs](https://github.com/ColourboxDevelopment/composer-translation-tool)[ RSS](/packages/colourbox-account-i18n/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (1)Versions (13)Used By (0)

composer-translation-tool
=========================

[](#composer-translation-tool)

> Composer package - Internalization tool by Colourbox for PHP

[packagist.org](https://packagist.org/packages/colourbox-account/i18n)

Install newest version
----------------------

[](#install-newest-version)

```
composer require colourbox-account/i18n
```

Update to newest version
------------------------

[](#update-to-newest-version)

```
composer update colourbox-account/i18n
```

Usage
-----

[](#usage)

### Create instance

[](#create-instance)

```
// With Memcached
$cache = new CBX\Cache("127.0.0.1", 11211);
$api = new CBX\API("https://test-tb.cbx.xyz", $cache);
$config = new CBX\Config("en_GB", "i18n-develop-test", $api);
$collections = new CBX\Collections($config);
$i18n = new CBX\I18nClass($collections);
```

### Create instance with factory

[](#create-instance-with-factory)

```
$i18n = CBX\I18nFactory::create("en_GB", "i18n-develop-test", "https://test-tb.cbx.xyz", "127.0.0.1", 11211);
```

### Getting simple translation

[](#getting-simple-translation)

```
// 'contact/phone' -> '+45 55 55 45'
echo $i18n->_('contact/phone');
// output: +45 55 55 45
```

### Getting simple translation with placeholders

[](#getting-simple-translation-with-placeholders)

```
// 'global/newPrice' -> 'New price: $price$'
echo $i18n->_('newPrice', [ 'price' => '10€' ]);
// output: New price: 10€
```

### Use in HTML

[](#use-in-html)

```

_htmlEscaped('helloWorld');?>

```

### Missing translation

[](#missing-translation)

> If the requested translation not found in the translation api the index is returned.

Test
====

[](#test)

```
test/test.sh

```

Requirement
===========

[](#requirement)

PHP: ^5.3.0 || ^7.0

PHP Curl extension

PHP Memcached extension

> This package requires no other composer packages

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~122 days

Recently: every ~327 days

Total

12

Last Release

1392d ago

PHP version history (2 changes)v1.0.0PHP ^5.3.0 || ^7.0

v1.2.0PHP ^5.3.0 || ^7.0 || ^8

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/656834?v=4)[colourbox](/maintainers/colourbox)[@colourbox](https://github.com/colourbox)

---

Top Contributors

[![colourbox-bot](https://avatars.githubusercontent.com/u/160585178?v=4)](https://github.com/colourbox-bot "colourbox-bot (1 commits)")[![nulpunkt](https://avatars.githubusercontent.com/u/1875948?v=4)](https://github.com/nulpunkt "nulpunkt (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/colourbox-account-i18n/health.svg)

```
[![Health](https://phpackages.com/badges/colourbox-account-i18n/health.svg)](https://phpackages.com/packages/colourbox-account-i18n)
```

###  Alternatives

[php-translation/translator

Translator services

25224.8k5](/packages/php-translation-translator)[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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