richarddobron/fbt
最新稳定版本:4.3.3
Composer 安装命令:
composer require richarddobron/fbt
包简介
An Internationalization Framework for PHP.
README 文档
README
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
$ composer require richarddobron/fbt:^4
✨ Features
- Parameters and interpolation
- Implicit parameters
- Auto-parameterization
- Plurals
- Enumerations
- Pronouns
- Number formatting
- Phrase extracting
- 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
Please see CONTRIBUTING for details.
📜 License
This project is licensed under the MIT License. See the LICENSE file for details.
统计信息
- 总下载量: 2.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-06



