PHPackages                             fienta/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. fienta/laravel-translatable-bootforms

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

fienta/laravel-translatable-bootforms
=====================================

Empowers adamwathan/bootforms with dimsav/laravel-translatable.

1.6.2(1y ago)033MITPHPPHP &gt;=5.5.9|&gt;=8.2.0

Since Dec 3Pushed 1y agoCompare

[ Source](https://github.com/fienta/Laravel-Translatable-Bootforms)[ Packagist](https://packagist.org/packages/fienta/laravel-translatable-bootforms)[ RSS](/packages/fienta-laravel-translatable-bootforms/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (37)Used By (0)

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

[](#laravel-translatable-bootforms)

[![Build Status](https://camo.githubusercontent.com/9a3cade761c1c7b599e1c70d34798bc1b5895f951e5b7e437307755b5355bf84/68747470733a2f2f7472617669732d63692e6f72672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74666f726d732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Propaganistas/Laravel-Translatable-Bootforms)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8d3baa8238e46f2426cab1340241ab262fa130b0d9069ae4a758af498f0dc119/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74466f726d732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Propaganistas/Laravel-Translatable-BootForms/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/406c7e3441352cfac83e83b464c7ce2a6304c90ab99e26528607f1c99a4a362e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f50726f706167616e69737461732f4c61726176656c2d5472616e736c617461626c652d426f6f74666f726d732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Propaganistas/Laravel-Translatable-Bootforms/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/d793d8d84acec3e15f75dbff7c2e10f9fa9a5e21441899d864791cf4ced3c85a/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f762f737461626c65)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)[![Total Downloads](https://camo.githubusercontent.com/2585dfc9b8bec8fb7593b7e7aa14be36566eb937025c6406ce5ff7cf9b69b552/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f646f776e6c6f616473)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)[![License](https://camo.githubusercontent.com/4b8d2b3e44f8777b94da24b0e2c265bd50c989a31028d5b5ac06a61184acb37a/68747470733a2f2f706f7365722e707567782e6f72672f70726f706167616e69737461732f6c61726176656c2d7472616e736c617461626c652d626f6f74666f726d732f6c6963656e7365)](https://packagist.org/packages/propaganistas/laravel-translatable-bootforms)

Make [BootForms](https://github.com/adamwathan/bootforms) work flawlessly with [Laravel Translatable](https://github.com/astrotomic/laravel-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

    ```
    composer require fienta/laravel-translatable-bootforms
    ```
2. In your app config, add the Service Provider in the `$providers` array **after** `BootFormsServiceProvider` and `TranslatableServiceProvider`

    ```
    'providers' => [
        Galahad\BootForms\BootFormsServiceProvider::class,
        Astrotomic\Translatable\TranslatableServiceProvider::class,
        ...
        TypiCMS\LaravelTranslatableBootForms\TranslatableBootFormsServiceProvider::class,
    ],
    ```
3. In your app config, add the Facade to the `$aliases` array

    ```
    'aliases' => [
        ...
        'TranslatableBootForm' => Propaganistas\LaravelTranslatableBootForms\Facades\TranslatableBootForm::class,
    ],
    ```
4. 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/adamwathan/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')
```

In case you need to construct name attributes other than `en[name]`, e.g. `item.en.name`, manually insert the `%locale` placeholder in your name attribute. Note that model binding will **break** for these inputs.

```
TranslatableBootForm::text('Name','item.%locale.name')

// Output

    Name (en)

```

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

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity87

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 83.3% 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 ~108 days

Recently: every ~356 days

Total

31

Last Release

546d ago

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

1.0.1PHP &gt;=5.6.0

1.1.4PHP &gt;=5.5.9

1.6.2PHP &gt;=5.5.9|&gt;=8.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/054004a5ccdaaa8a1914b7827a3f90b02a71418f90fdd72782156b454bea3ed6?d=identicon)[fienta](/maintainers/fienta)

---

Top Contributors

[![Propaganistas](https://avatars.githubusercontent.com/u/6680176?v=4)](https://github.com/Propaganistas "Propaganistas (70 commits)")[![elbakly](https://avatars.githubusercontent.com/u/2504606?v=4)](https://github.com/elbakly "elbakly (5 commits)")[![sdebacker](https://avatars.githubusercontent.com/u/134503?v=4)](https://github.com/sdebacker "sdebacker (5 commits)")[![mlepmets](https://avatars.githubusercontent.com/u/17416533?v=4)](https://github.com/mlepmets "mlepmets (2 commits)")[![fienta-public](https://avatars.githubusercontent.com/u/95849534?v=4)](https://github.com/fienta-public "fienta-public (1 commits)")[![jnbn](https://avatars.githubusercontent.com/u/112425?v=4)](https://github.com/jnbn "jnbn (1 commits)")

---

Tags

laraveli18ntranslatableformbootforms

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/fienta-laravel-translatable-bootforms/health.svg)](https://phpackages.com/packages/fienta-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)
