PHPackages                             tacoberu/fluent-intl - 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. tacoberu/fluent-intl

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

tacoberu/fluent-intl
====================

PHP implementation of Project Fluent. Localization library for expressive translations.

v1.2.1(3y ago)33.0k[3 issues](https://github.com/tacoberu/fluent-php/issues)1MITPHPPHP &gt;=5.3.3CI failing

Since Feb 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tacoberu/fluent-php)[ Packagist](https://packagist.org/packages/tacoberu/fluent-intl)[ RSS](/packages/tacoberu-fluent-intl/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (13)Used By (1)

Project Fluent [![Build Status](https://camo.githubusercontent.com/dfccf64844c00c426fbffc4ffe0150c5668c4f22e6f2ab8a3c654db9a54dfa10/68747470733a2f2f7472617669732d63692e6f72672f7461636f626572752f666c75656e742d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tacoberu/fluent-php)
=======================================================================================================================================================================================================================================================================================================

[](#project-fluent-)

This is a (***uncomplete***) PHP implementation of Project Fluent, a localization framework designed to unleash the entire expressive power of natural language translations.

Project Fluent keeps simple things simple and makes complex things possible. The syntax used for describing translations is easy to read and understand. At the same time it allows, when necessary, to represent complex concepts from natural languages like gender, plurals, conjugations, and others.

Learn the FTL syntax
--------------------

[](#learn-the-ftl-syntax)

FTL is a localization file format used for describing translation resources. FTL stands for *Fluent Translation List*.

FTL is designed to be simple to read, but at the same time allows to represent complex concepts from natural languages like gender, plurals, conjugations, and others.

```
hello-user = Hello, { $username }!

```

[Read the Fluent Syntax Guide](http://projectfluent.org/fluent/guide/) in order to learn more about the syntax. If you're a tool author you may be interested in the formal [EBNF grammar](https://github.com/projectfluent/fluent/tree/master/spec).

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

[](#installation)

The recommended way to install is via Composer:

```
    composer require tacoberu/fluent-intl

```

Usage
-----

[](#usage)

```
require __dir__ . '/vendor/autoload.php';

use Taco\FluentIntl\FluentTranslator;
use Taco\FluentIntl\FluentResource;

$translator = new FluentTranslator("en-US");
$translator->addResource(new FluentResource('
-brand-name = Foo 3000
welcome = Welcome, {$name}, to {-brand-name}!
greet-by-name = Hello, { $name }!
emails =
    { $unreadEmails ->
        [1] You have one unread email.
       *[other] You have { $unreadEmails } unread emails.
    }
'));

$msg = $translator->getMessage("welcome");
dump($translator->formatPattern($msg->value, ["name" => "Anna"]));
// Welcome, Anna, to Foo 3000!

$msg = $translator->getMessage("emails");
dump($translator->formatPattern($msg->value, ["unreadEmails" => 5]));
// You have 5 unread emails.
```

Status
------

[](#status)

Only part of the specification implemented.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

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

Every ~128 days

Recently: every ~237 days

Total

10

Last Release

1171d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1828339?v=4)[Martin Takáč](/maintainers/tacoberu)[@tacoberu](https://github.com/tacoberu)

---

Top Contributors

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

---

Tags

localizationinternationalizationi18nlanguagel10ntranslatepluralparsertranslationformatlocaleformattinggenderftl

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tacoberu-fluent-intl/health.svg)

```
[![Health](https://phpackages.com/badges/tacoberu-fluent-intl/health.svg)](https://phpackages.com/packages/tacoberu-fluent-intl)
```

###  Alternatives

[jrmajor/fluent

Fluent localization system for PHP

2918.2k7](/packages/jrmajor-fluent)[jrmajor/laravel-fluent

Fluent translations for Laravel

208.8k](/packages/jrmajor-laravel-fluent)[gettext/languages

gettext languages with plural rules

7832.7M12](/packages/gettext-languages)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8032.4k](/packages/skillshare-formatphp)[aplus/language

Aplus Framework Language Library

2391.7M15](/packages/aplus-language)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

29109.6k3](/packages/fisharebest-localization)

PHPackages © 2026

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