richarddobron / laravel-fbt
A PHP Internationalization Framework for Laravel Application.
Requires
- php: ^7.2 || ^8.0
- ext-dom: *
- ext-iconv: *
- ext-json: *
- illuminate/contracts: ~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
- illuminate/support: ~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
- richarddobron/fbt: ^5.1
Requires (Dev)
- orchestra/database: ~3.7.0|~3.8.0|^4.0|^5.0|^6.0
- orchestra/testbench: ~3.7.0|~3.8.0|^4.0|^5.0|^6.0
- phpunit/phpunit: ^7.0|^8.0
- spatie/phpunit-snapshot-assertions: ^2.0|^3.0|^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 5.1.0
- 5.0.0
- 4.x-dev
- 4.4.0
- 4.3.6
- 4.3.5
- 4.3.4
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.2.8
- 4.2.7
- 4.2.6
- 4.2.5
- 4.2.4
- 4.2.3
- 4.2.2
- 4.2.1
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.12
- 4.0.11
- 4.0.10
- 4.0.9
- 4.0.8
- 4.0.7
- 4.0.6
- 4.0.5
- 4.0.4
- 4.0.3
- 4.0.2
- 4.0.1
- 4.0
- 3.x-dev
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.8
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.0
- 3.0.12
- 3.0.11
- 3.0.10
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0
This package is auto-updated.
Last update: 2026-10-02 08:20:04 UTC
README
FBT for Laravel
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.
π 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
π 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.



