PHPackages                             richarddobron/fbt - 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. [Framework](/categories/framework)
4. /
5. richarddobron/fbt

ActiveLibrary[Framework](/categories/framework)

richarddobron/fbt
=================

An Internationalization Framework for PHP.

4.3.3(1y ago)1512.0k↑243.8%2MITPHPPHP ^7.2 || ^8.0CI passing

Since Feb 18Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/richardDobron/fbt)[ Packagist](https://packagist.org/packages/richarddobron/fbt)[ RSS](/packages/richarddobron-fbt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (56)Used By (2)

 [![FBT](icon.png)](icon.png)
=============================

[](#--)

FBT for PHP
===========

[](#fbt-for-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b9e11bf33c9d363deaf98bd70d72db37314b51b1b68b0428bb9885262636abdb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696368617264446f62726f6e2f6662742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richardDobron/fbt)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Test Status](https://github.com/richardDobron/fbt/actions/workflows/run-tests.yml/badge.svg)](https://github.com/richardDobron/fbt/actions/workflows/run-tests.yml/badge.svg)[![Code Style Status](https://github.com/richardDobron/fbt/actions/workflows/php-cs-fixer.yml/badge.svg)](https://github.com/richardDobron/fbt/actions/workflows/php-cs-fixer.yml/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/22d318ffc1516eee90cee1576e8c00858735af89b0b042ee3c3fb3d7c76879dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72696368617264446f62726f6e2f6662742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/richardDobron/fbt)

FBT is an internationalization framework for PHP designed to be not just **powerful** and **flexible**, but also **simple** and **intuitive**. It helps with the following:

- Organizing your source text for translation
- Composing grammatically correct translatable UI
- Eliminating verbose boilerplate for generating UI

**This library is based on the JavaScript implementation of Facebook's [FBT](https://github.com/facebook/fbt).**

[![FBT intro](docs/intro.png)](docs/intro.png)

[![FBT plurals](docs/plurals.png)](docs/plurals.png)

[![FBT enum](docs/enum.png)](docs/enum.png)

[![FBT pronouns](docs/pronouns.png)](docs/pronouns.png)

📖 Requirements
--------------

[](#-requirements)

- PHP 7.0 or higher
- [Composer](https://getcomposer.org) is required for installation

📦 Installing
------------

[](#-installing)

```
$ composer require richarddobron/fbt:^4
```

✨ Features
----------

[](#-features)

- Parameters and interpolation
- Implicit parameters
- Auto-parameterization
- Plurals
- Enumerations
- Pronouns
- Number formatting
- Phrase extracting
- Inline translating

🚀 Getting started
-----------------

[](#-getting-started)

See the [Getting Started](docs/getting_started.md) guide for more.

📑 Version Guidance
------------------

[](#-version-guidance)

VersionReleasedStatusRepoPHP Version3.x2022-02-18Maintained[v3](https://github.com/richarddobron/fbt/tree/3.x)&gt;= 7.04.x2022-04-09Latest[v4](https://github.com/richarddobron/fbt)&gt;= 7.2🔌 Official integrations
-----------------------

[](#-official-integrations)

The following integrations are fully supported and maintained:

- [Laravel](https://github.com/richardDobron/laravel-fbt)

⚙️ How FBT works
----------------

[](#️-how-fbt-works)

FBT works by transforming your `` and `fbt(...)` constructs via [DOM Forge](https://github.com/richardDobron/dom-forge). It serves to extract strings from source and lookup translated payloads generated during execution. FBT creates tables of all possible variations for each fbt phrase and accesses them at runtime.

📕 Full documentation
--------------------

[](#-full-documentation)

- [API Reference](https://richarddobron.github.io/fbt/)

✅ TODO
------

[](#-todo)

- Add driver-agnostic support for multiple database systems.
- Add integrations for Symfony, CakePHP, Zend Framework, ...
- ...

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

📜 License
---------

[](#-license)

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance67

Regular maintenance activity

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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 ~26 days

Recently: every ~82 days

Total

55

Last Release

128d ago

Major Versions

3.2.8 → 4.2.92024-12-06

3.2.9 → 4.3.02024-12-14

3.3.0 → 4.3.12025-01-12

3.3.1 → 4.3.22025-02-16

3.3.2 → 4.3.32025-04-15

PHP version history (2 changes)3.0PHP ^7.0

4.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ce70053083f807f4416f0bafe680691b66cd14f3c1bdf7b3df51b6f5b5cfdea?d=identicon)[dobron](/maintainers/dobron)

---

Top Contributors

[![richardDobron](https://avatars.githubusercontent.com/u/33115305?v=4)](https://github.com/richardDobron "richardDobron (138 commits)")

---

Tags

frameworki18ninternationalizationintlphptranslationsphpframeworkinternationalizationi18ntranslations

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/richarddobron-fbt/health.svg)

```
[![Health](https://phpackages.com/badges/richarddobron-fbt/health.svg)](https://phpackages.com/packages/richarddobron-fbt)
```

###  Alternatives

[laravel-lang/publisher

Localization publisher for your Laravel application

2167.7M24](/packages/laravel-lang-publisher)[laravel-lang/common

Easily connect the necessary language packs to the application

1463.1M22](/packages/laravel-lang-common)[gettext/languages

gettext languages with plural rules

7530.3M11](/packages/gettext-languages)[pestphp/pest-plugin-drift

The Pest Drift Plugin

734.0M74](/packages/pestphp-pest-plugin-drift)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)[pestphp/pest-plugin-mutate

Mutates your code to find untested cases

4126.6M17](/packages/pestphp-pest-plugin-mutate)

PHPackages © 2026

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