PHPackages                             robinncode/onubadok - 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. robinncode/onubadok

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

robinncode/onubadok
===================

This is a Composer package for translating your PHP software to other languages, primarily in Bengali.

1.0.2(3y ago)2816[1 issues](https://github.com/robinNcode/onubadok/issues)1MITPHPPHP &gt;=7.4

Since Jun 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/robinNcode/onubadok)[ Packagist](https://packagist.org/packages/robinncode/onubadok)[ Docs](https://github.com/robinNcode/onubadok)[ RSS](/packages/robinncode-onubadok/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (3)DependenciesVersions (3)Used By (1)

Onubadok: A localisation tool for laravel projects
==================================================

[](#onubadok-a-localisation-tool-for-laravel-projects)

Localize your laravel project with ease using onubadok.
-------------------------------------------------------

[](#localize-your-laravel-project-with-ease-using-onubadok)

### Installation

[](#installation)

```
composer require robinncode/onubadok

```

### Usage

[](#usage)

- To generate language files run the following command

    ```
    php artisan onubadok:generate your_language_code

    ```

    #### Example

    [](#example)

    ```
    php artisan onubadok:generate bn

    ```

    This will generate a necessary files on as `lang/en` and `lang/bn`. Now you can translate the file and save it.
- To publish the Controller file run the following command

    ```
    php artisan onubadok:publish

    ```

    This will publish the controller file to `app/Http/Controllers/OnubadokController.php`. Now you can use the controller to get the translated text. Also append the following line to your `routes/web.php` file

    ```
    Route::get('/onubadok/change/{lang}', 'OnubadokController@change');

    ```

### Usage in blade file

[](#usage-in-blade-file)

Now run your project then goto your browser and type `http://your_project_url/onubadok/change/your_language_code` to change the language to `your_language_code`. Now you can use the following code to get the translated text.

```
{{ __( 'Your text' ) }}

```

#### Example

[](#example-1)

Here is an example of a data table column name. Here `data_table` is the file name and `Name` is the key.

```
{{ __( 'data_table.Name' ) }}

```

### License

[](#license)

This package is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

### Contribution

[](#contribution)

Feel free to contribute to this project. Any kind of contribution is welcome.

### Author

[](#author)

MsM Robin

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity45

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b62953dedc1c7abcf0b3279e3454d3a73a5dee6da30aa6cf2e5316650a1e4f3a?d=identicon)[robinNcode](/maintainers/robinNcode)

---

Top Contributors

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

---

Tags

composerlanguagelaravellocalizationopen-sourcephptranslationphplaravellocalizationlanguagetranslation

### Embed Badge

![Health badge](/badges/robinncode-onubadok/health.svg)

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

###  Alternatives

[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

544656.8k4](/packages/codezero-laravel-localized-routes)[opgginc/codezero-laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

29109.8k1](/packages/opgginc-codezero-laravel-localized-routes)[awes-io/localization-helper

Package for convenient work with Laravel's localization features

3527.1k4](/packages/awes-io-localization-helper)[niels-numbers/laravel-localizer

Detects the user’s preferred language and redirects to the matching localized URL.

171.4k](/packages/niels-numbers-laravel-localizer)[josiasmontag/laravel-localization

Localization for Laravel framework

2336.7k](/packages/josiasmontag-laravel-localization)

PHPackages © 2026

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