PHPackages                             oniti/translation - 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. oniti/translation

ActiveLibrary

oniti/translation
=================

Permet de gérer la traduction d'objets

06PHP

Since May 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/OnitiFR/laravelTranslation)[ Packagist](https://packagist.org/packages/oniti/translation)[ RSS](/packages/oniti-translation/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Translation
-----------

[](#translation)

### Installation

[](#installation)

```
    composer require oniti/translation

```

The next required step is to add the service provider to config/app.php :

```
    Oniti\Translation\TranslationServiceProvider::class,

```

Add middleware to app/Http/Kernel.php

```
    protected $middlewareGroups = [
        ...
        'api' => [
            ....,
            \Oniti\Translation\middlewares\TranslationMiddleWare::class,
        ],
    ];

```

### Publish

[](#publish)

The last required step is to publish views and assets in your application with :

```
    php artisan vendor:publish

```

### Migrate

[](#migrate)

Migrate in order to create table:

```
    php artisan migrate

```

### Exemple

[](#exemple)

Configure Model

```

```

Route Test

```
     Route::get('test', function(){
         $article = Article::first();
         // fill méthode
         $article->fill(['libelle' => ['fr' => 'Machin Test update', 'en'=> 'Test Machin English update']]);
         // classic methode
         $article->libelle = ['fr' => 'Machin Test hdhdhdhdh', 'en'=> 'Test Machin English hdhdhdhdh'];
         $article->save();

         return $article;

        // Creation methode
        // $article = Article::create(['libelle' => ['fr' => 'Machin Test', 'en'=> 'Test Machin English']]);

     });

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/12ca5db86b9cd81a726d458f1fcdf8f5ab018da1a66bc73a039c5076c2f76dbe?d=identicon)[fbouyer](/maintainers/fbouyer)

---

Top Contributors

[![hyosh](https://avatars.githubusercontent.com/u/16243558?v=4)](https://github.com/hyosh "hyosh (4 commits)")

### Embed Badge

![Health badge](/badges/oniti-translation/health.svg)

```
[![Health](https://phpackages.com/badges/oniti-translation/health.svg)](https://phpackages.com/packages/oniti-translation)
```

PHPackages © 2026

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