PHPackages                             ibrhaim13/translate - 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. [Database &amp; ORM](/categories/database)
4. /
5. ibrhaim13/translate

ActiveLibrary[Database &amp; ORM](/categories/database)

ibrhaim13/translate
===================

laravel static text translate package for laravel 7 up

v2.7(2y ago)025MITPHPPHP ^8.0

Since May 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ibrahimMH13/translate)[ Packagist](https://packagist.org/packages/ibrhaim13/translate)[ RSS](/packages/ibrhaim13-translate/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (11)Used By (0)

Introduction
------------

[](#introduction)

ibrhaim13/mdb-translate is laravel translation package using mongodb for static text that is simple,dynamic and enjoyable to use.

Official Documentation
----------------------

[](#official-documentation)

Install (Laravel ^10.0)
-----------------------

[](#install-laravel-100)

Install via composer

```
composer require ibrhaim13/translate
```

Publish Package
---------------

[](#publish-package)

will publish Package Components translate13 (config file), Migration file, view,

```
php artisan vendor:publish --force --tag=translate13
```

Dependents:
-----------

[](#dependents)

you should install laravel on of Starter Kits auth package like auth/ui or laravel-breeze or other cause should this feature for admins. we are also Dependent to laravel view app layout if you want to make your custom view you do not need it at all.

Basic Configure Package
-----------------------

[](#basic-configure-package)

Run migrate

```
php artisan migrate
```

add middleware for web middleware group for add local to url path

```
# app/Http/Kernel.php

protected $middlewareGroups = [
        'web' => [
        ...,
        Ibrhaim13\Translate\Http\Middleware\Web\Localization::class,
        ...
        ]
```

will change local of app once change it at url.

add prefix to routes via Route Service Provider of application

```
# app/Providers/RouteServiceProvider.php
# boot function inside route callback funcation add ->prefix(Localization::routePrefix())
      Route::middleware('web')->prefix(Localization::routePrefix())
           ->group(base_path('routes/web.php'));
```

Advance Configure Package
-------------------------

[](#advance-configure-package)

you can be custom route ,prefix,add new language and add your middlewares as you like view, and you should add translate page route into your navbar of app, so you can access page you can add new translate group via extend the model and overwrite the group

```
# app/Models/YourTranslateModelExtendFromPackageModel.php
    public static array $groups = [
        'str_public',
        'str_admin',
        //here add your new group as you like
    ];
```

How you can use
---------------

[](#how-you-can-use)

after set up your configuration you can access translate page to add new keys so you can translate it from admin panel

```
#first segment is a group name
#secand segment is translated key
__('str_public.key name');
```

by default there two group name `str_public`,`str_admin`,after add the key before open translate admin page you must open the page there have this key so laravel application loaded

to access translate admin panel page

```
http://yourdomain.com/en/translate
```

then click on generate button to generate static translate files after edit your translation ##NOTE: YOUR SERVER NEED PERMISSION TO CRAETE TRANSLATIONS FILES

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

e-mail us at

License
-------

[](#license)

ibrhaim13/translate is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~47 days

Recently: every ~1 days

Total

10

Last Release

1027d ago

Major Versions

1.0.4 → v2.02023-07-21

PHP version history (2 changes)1.0PHP ^7.3|^8.0

v2.0.2PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ec6d35b88d023aefb953853deeb40e6da9df55c3c617c73667b4423557ce2c0?d=identicon)[ibrhaim13](/maintainers/ibrhaim13)

---

Top Contributors

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

---

Tags

laraveltranslatestaticmongodbadmin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ibrhaim13-translate/health.svg)

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

###  Alternatives

[exodusanto/administrator

A database interface package for Laravel (Legacy of Frozennode Laravel-Administrator)

3910.6k](/packages/exodusanto-administrator)

PHPackages © 2026

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