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.4(2w ago)1517.7k↑315.6%2MITPHPPHP ^7.2 || ^8.0CI passing

Since Feb 18Pushed 2w ago1 watchersCompare

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

READMEChangelog (10)Dependencies (13)Versions (57)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

57

—

FairBetter than 98% of packages

Maintenance96

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity68

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

Recently: every ~121 days

Total

56

Last Release

20d ago

Major Versions

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

3.x-dev → 4.3.42026-06-14

PHP version history (2 changes)3.0PHP ^7.0

4.0PHP ^7.2 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![richardDobron](https://avatars.githubusercontent.com/u/33115305?v=4)](https://github.com/richardDobron "richardDobron (140 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

[silverstripe/framework

The SilverStripe framework

7313.7M2.8k](/packages/silverstripe-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[laravel-lang/publisher

Localization publisher for your Laravel application

2169.0M51](/packages/laravel-lang-publisher)[laravel-lang/common

Easily connect the necessary language packs to the application

1593.8M34](/packages/laravel-lang-common)[pestphp/pest-plugin-drift

The Pest Drift Plugin

745.1M107](/packages/pestphp-pest-plugin-drift)[punic/punic

PHP-Unicode CLDR

1573.0M31](/packages/punic-punic)

PHPackages © 2026

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