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)32.8k[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 1mo ago

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 43% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

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

1119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d9535bc57ab9e7c844b76be57d024b97eb84e9f8a9d308537afffe9cf81c409?d=identicon)[tacoberu](/maintainers/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

2716.9k5](/packages/jrmajor-fluent)[jrmajor/laravel-fluent

Fluent translations for Laravel

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

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[skillshare/formatphp

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

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

Aplus Framework Language Library

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

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

3191.1k2](/packages/fisharebest-localization)

PHPackages © 2026

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