Download the PHP package richarddobron/fbt without Composer
On this page you can find all versions of the php package richarddobron/fbt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download richarddobron/fbt
More information about richarddobron/fbt
Files in richarddobron/fbt
Package fbt
Short Description An Internationalization Framework for PHP.
License MIT
Informations about the package fbt
FBT for PHP
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.
📖 Requirements
- PHP 7.0 or higher
- Composer is required for installation
📦 Installing
✨ Features
- [x] Parameters and interpolation
- [x] Implicit parameters
- [x] Auto-parameterization
- [x] Plurals
- [x] Enumerations
- [x] Pronouns
- [x] Number formatting
- [x] Phrase extracting
- [x] Inline translating
🚀 Getting started
See the Getting Started guide for more.
📑 Version Guidance
Version | Released | Status | Repo | PHP Version |
---|---|---|---|---|
3.x | 2022-02-18 | Maintained | v3 | >= 7.0 |
4.x | 2022-04-09 | Latest | v4 | >= 7.2 |
🔌 Official integrations
The following integrations are fully supported and maintained:
⚙️ How FBT works
FBT works by transforming your <fbt>
and fbt(...)
constructs via
Simple HTML DOM Parser. 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
✅ TODO
- [ ] Add driver-agnostic support for multiple database systems.
- [ ] Add integrations for Symfony, CakePHP, Zend Framework, ...
- ...
🤝 Contributing
We welcome contributions! If you'd like to help improve this project, feel free to open an issue or submit a pull request.
📜 License
FBT is MIT licensed, as found in the LICENSE file.
All versions of fbt with dependencies
ext-json Version *
ext-dom Version *
ext-mbstring Version *
ext-iconv Version *
minicli/minicli Version 1.0.4
nikic/php-parser Version ^4.1