PHPackages                             typicms/laravel-translatable-bootforms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. typicms/laravel-translatable-bootforms

ActiveLibrary[Localization &amp; i18n](/categories/localization)

typicms/laravel-translatable-bootforms
======================================

Empowers typicms/bootforms with typicms/laravel-translatable.

10.0.2(1mo ago)429.1k↑50%[1 issues](https://github.com/typicms/laravel-translatable-bootforms/issues)2MITPHPPHP ^8.1CI passing

Since Dec 3Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/typicms/laravel-translatable-bootforms)[ Packagist](https://packagist.org/packages/typicms/laravel-translatable-bootforms)[ GitHub Sponsors](https://github.com/typicms)[ RSS](/packages/typicms-laravel-translatable-bootforms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (37)Used By (2)

Laravel Translatable BootForms
==============================

[](#laravel-translatable-bootforms)

[![Latest Version on Packagist](https://camo.githubusercontent.com/13040ddef19f0b869e4c5dfcb86b20c1e70cd7947e6141d3545af186fc7e0375/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74797069636d732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/typicms/laravel-translatable-bootforms)[![Actions Status](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/workflows/tests/badge.svg)](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions)[![PHPStan](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/phpstan.yml/badge.svg)](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/phpstan.yml)[![Pint](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/pint.yml/badge.svg)](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/pint.yml)[![Rector](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/rector.yml/badge.svg)](https://github.com/TypiCMS/Laravel-Translatable-Bootforms/actions/workflows/rector.yml)[![Coverage Status](https://camo.githubusercontent.com/4075e154ecdbe0a7b615dad682f9ffd78e21f85c3f3e2437eabce769e75ffdd9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f54797069434d532f4c61726176656c2d5472616e736c617461626c652d426f6f74666f726d732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/TypiCMS/Laravel-Translatable-Bootforms?branch=master)

Make [BootForms](https://github.com/TypiCMS/bootforms) work flawlessly with [Laravel Translatable](https://github.com/typicms/translatable)!

By importing this package, generating translatable forms using BootForms is a breeze.

### Installation

[](#installation)

1. Run the Composer require command to install the package, the service provider will be autodiscovered by Laravel.

    ```
    composer require typicms/laravel-translatable-bootforms

    ```
2. In your app config, add the Facade to the `$aliases` array

    ```
    'aliases' => [
        ...
        'TranslatableBootForm' => TypiCMS\LaravelTranslatableBootForms\Facades\TranslatableBootForm::class,
    ],
    ```
3. Publish the configuration file

    ```
    php artisan vendor:publish --provider="TypiCMS\LaravelTranslatableBootForms\TranslatableBootFormsServiceProvider" --tag="config"
    ```

### Usage

[](#usage)

Simply use the `TranslatableBootForm` Facade as if it were `BootForm`! That’s it. Multiple form inputs will now be generated for the locales set in Translatable’s configuration file. They will have the corresponding value for each language and will save all of the translations without any code manipulation.

Please review [BootForms’ documentation](https://github.com/typicms/bootforms#using-bootforms) if you’re unsure how to use it.

Example:

```
// View
{!! BootForm::text('Name', 'name')
            ->placeholder('My placeholder') !!}

// Output

    Name

// Controller
public function postEdit($request)
{
    $someModel->save($request->all());
}
```

```
// View
{!! TranslatableBootForm::text('Name', 'name')
                        ->placeholder('My placeholder') !!}

// Output

    Name (en)

    Name (nl)

// Controller
public function postEdit($request)
{
    $someModel->save($request->all());
}
```

You can use the `%name` and `%locale` placeholders while specifying parameters. The placeholder will be replaced with the corresponding input name or locale. This can be useful for two-way data binding libraries such as Angular.js or Vue.js. E.g.

```
{!! TranslatableBootForm::text('Title', 'title')
                        ->attribute('some-attribute', 'Name: %name')
                        ->attribute('another-attribute', 'Locale: %locale') !!}

// Output

    Title (en)

    Title (nl)

```

To render a *form element only for some chosen locales*, explicitly call `renderLocale()` as the final method and pass the locale or an array of locales as the first parameter:

```
TranslatableBootForm::text('Name', 'name')
                    ->renderLocale('en')
```

If you need to apply a *method only for certain locales*, suffix the method with `ForLocale` and pass the locale or an array of locales as the first parameter:

```
TranslatableBootForm::text('Name', 'name')
                    ->dataForLocale('en', 'attributeName', 'attributeValue')
                    ->addClassForLocale(['en', 'nl'], 'addedClass')
```

For customizing the locale indicator in the label (and several other settings), please take a look at the configuration file.

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance82

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~114 days

Recently: every ~96 days

Total

34

Last Release

56d ago

Major Versions

5.0.0 → 6.0.02021-01-06

6.0.4 → 7.0.02022-04-26

7.0.0 → 8.0.02023-04-06

8.0.2 → 9.0.02025-11-02

9.0.0 → 10.0.02026-03-13

PHP version history (7 changes)1.0.0PHP &gt;=5.5.0

1.0.1PHP &gt;=5.6.0

1.1.4PHP &gt;=5.5.9

2.0.0PHP &gt;=7.0.0

5.0.0PHP &gt;=7.2.0

7.0.0PHP ^8.0.2

8.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b93740e4c6b40a6219441696db5db9c4b635dad91339c1893dfe0813434e8d94?d=identicon)[Samuel De Backer](/maintainers/Samuel%20De%20Backer)

---

Top Contributors

[![sdebacker](https://avatars.githubusercontent.com/u/134503?v=4)](https://github.com/sdebacker "sdebacker (110 commits)")[![Propaganistas](https://avatars.githubusercontent.com/u/6680176?v=4)](https://github.com/Propaganistas "Propaganistas (42 commits)")

---

Tags

laraveli18ntranslatableformbootforms

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/typicms-laravel-translatable-bootforms/health.svg)

```
[![Health](https://phpackages.com/badges/typicms-laravel-translatable-bootforms/health.svg)](https://phpackages.com/packages/typicms-laravel-translatable-bootforms)
```

###  Alternatives

[optimistdigital/nova-translatable

A laravel-translatable extension for Laravel Nova.

202427.4k5](/packages/optimistdigital-nova-translatable)[outl1ne/nova-translatable

A laravel-translatable extension for Laravel Nova.

203416.9k8](/packages/outl1ne-nova-translatable)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

3812.2k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
