swiftyper / laravel-fbt-sync
Extension for automatic deployment of fbt framework translations for Laravel
1.3.4
2026-05-27 18:55 UTC
Requires
- php: ^7.0 || ^8.0
- ext-json: *
- illuminate/contracts: ~5.5.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
- illuminate/support: ~5.5.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
- swiftyper/swiftyper-php: ^v1.0.2
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Laravel FBT sync
This library allows you to import native phrases and automatically deploy reviewed translations.
Get started with Swiftyper Translations
Requirements
- FBT package
- PHP 7.0 or higher
- Laravel 5.5 or higher
- Composer is required for installation
π¦ Installing
$ composer require swiftyper/laravel-fbt-sync
π§ Configuration
These steps are required:
-
Register your FBT project on Swiftyper Translations
-
Publish config file:
$ php artisan vendor:publish --provider="Swiftyper\fbt\IntlServiceProvider" --tag=swiftyper-config
-
Set option api_key in /config/fbt.php.
-
Init project settings:
$ php artisan swiftyper:fbt --init
Options
The following options can be defined:
- api_key
string: Project API key (required) - routes
bool: Enable routes:/intl/deploy,/intl/upload,/intl/sync - verify_signature
bool: Verify signature from response
π Artisan Command
php artisan swiftyper:fbt
Options
| Option | Description |
|---|---|
| --deploy | Deploy reviewed app translations |
| --upload | Upload phrases/translations to swiftyper (from default storage) |
| --upload=[path] | Upload phrases/translations to swiftyper |
| --init | Connect fbt project with swiftyper |
| --pretty | Pretty print output (default: true) |
π License
The MIT License (MIT). Please see LICENSE for more information.