New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

richarddobron/laravel-fbt

A PHP Internationalization Framework for Laravel Application.
11,206 11
Install
composer require richarddobron/laravel-fbt
Latest Version:5.1.0
PHP:^7.2 || ^8.0
Laravel:5 – 13
License:MIT
Last Updated:Oct 2, 2026
Links: GitHub  ·  Packagist
Maintainer: dobron

FBT

FBT for Laravel

Latest Version on Packagist MIT Licensed Test Status Total Downloads

FBT is an internationalization framework for Laravel Application 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.

FBT intro FBT plurals FBT enum FBT pronouns

📖 Requirements

  • Laravel 5.5 or higher
  • Composer is required for installation

📦 Installing

$ composer require richarddobron/laravel-fbt

✨ Features

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

🚀 Getting started

Integrating into your app

📑 Version Guidance

Version Released Status Repo Laravel Version PHP Version
3.x 2022-02-21 Unsupported v3 ^5.5 ^7.0
4.x 2022-04-09 Unsupported v4 ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 ^7.2|^8.0
5.x 2026-09-26 Latest v5 ^5.6|^5.7|^5.8|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 ^7.2|^8.0

⚙️ How FBT works

Like Facebook's fbt, FBT creates tables of all possible variations for each fbt phrase and accesses them at runtime. fbt(...) callsites are compiled from their constructs (e.g. fbt::param()), and <fbt> constructs are parsed via DOM Forge. Each callsite is compiled once, its strings are extracted for translation, and the translated payloads are looked up during execution.

⬆️ Upgrading

See UPGRADE.md for upgrading to fbt 5.

📕 Full documentation

🤝 Contributing

Please see CONTRIBUTING for details.

📜 License

This project is licensed under the MIT License. See the LICENSE file for details.

Related Packages

swiftyper/laravel-fbt-sync

Extension for automatic deployment of fbt framework translations for Laravel

2,720 0
webnuvola/laravel-i18n

Laravel internationalization package

7,739 2
hidejec/liquido-orm

LiquidoORM Framework Developed by Team Liquido(Inspired by Laravel Eloquent ORM)

24 7
libxa/framework

LibxaFrame core framework — Foundation, Router, Atlas ORM, Blade-X, Reactive, Mo...

450 0
cosninix/sin

Simple internationalization for Laravel

2,851 0

Version History

Version Released PHP Laravel License
5.1.0 ^7.2 || ^8.0 ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
5.0.0 ^7.2 || ^8.0 ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
4.4.0 ^7.2 || ^8.0 ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
4.3.6 ^7.2 || ^8.0 ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
4.3.5 ^7.2 || ^8.0 ~5.6.0|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT