PHPackages                             mohamedalsmman/dynamic-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. [Localization &amp; i18n](/categories/localization)
4. /
5. mohamedalsmman/dynamic-translation

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

mohamedalsmman/dynamic-translation
==================================

1.0.0(2y ago)026MITPHPPHP ^8.2

Since Apr 5Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohamedalsmman/dynamic-translation)[ Packagist](https://packagist.org/packages/mohamedalsmman/dynamic-translation)[ Docs](https://github.com/mohamedalsmman/dynamic-translation)[ GitHub Sponsors](https://github.com/mohamedalsmman)[ RSS](/packages/mohamedalsmman-dynamic-translation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (2)Used By (0)

This is my package dynamic-translation
======================================

[](#this-is-my-package-dynamic-translation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0552e93cc65c4323c1b432c1064d4c7e59f7f22201699a9622f7cdf0df02f839/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6f68616d6564616c736d6d616e2f64796e616d69632d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedalsmman/dynamic-translation)[![GitHub Tests Action Status](https://camo.githubusercontent.com/fbc0eb4257d07221b0b66a422188fd37bd46283c400c038dcd3ee086c2d03334/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6564616c736d6d616e2f64796e616d69632d7472616e736c6174696f6e2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mohamedalsmman/dynamic-translation/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/af76e4bd897ea988e3fa215e4ae6ea496bc70c85056330aecea495a606152c83/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6f68616d6564616c736d6d616e2f64796e616d69632d7472616e736c6174696f6e2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mohamedalsmman/dynamic-translation/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/731cb369203a2b31118eb439ec095d41896fba2dcacf5eb882e7751fac2ef91e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f68616d6564616c736d6d616e2f64796e616d69632d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mohamedalsmman/dynamic-translation)

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/47a654956bba1f8cfaa151c819544e4c7583c7640c8bf03ae443b609eb9c8307/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f64796e616d69632d7472616e736c6174696f6e2e6a70673f743d31)](https://spatie.be/github-ad-click/dynamic-translation)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require mohamedalsmman/dynamic-translation
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="dynamic-translation-migrations"
php artisan migrate
```

You can publish the config file with:

```
php artisan vendor:publish --tag="dynamic-translation-config"
```

This is the contents of the published config file:

```
return [
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="dynamic-translation-views"
```

Usage
-----

[](#usage)

```
$translation = new alsmman\Translation();
echo $translation->echoPhrase('Hello, alsmman!');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

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

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Mohamed Alsmman](https://github.com/mohamedalsmman)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

767d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3fbecd6f08b36aa5b8a9554dbb6db6814758da391e5a5b16e8f9bd0e97835e48?d=identicon)[mohamedalsmman](/maintainers/mohamedalsmman)

---

Top Contributors

[![mohamed-alsmman](https://avatars.githubusercontent.com/u/91065336?v=4)](https://github.com/mohamed-alsmman "mohamed-alsmman (2 commits)")[![mohamedalsmman](https://avatars.githubusercontent.com/u/164670206?v=4)](https://github.com/mohamedalsmman "mohamedalsmman (1 commits)")

---

Tags

laraveldynamic-translationmohamedalsmman

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[askdkc/breezejp

Laravel Starter Kit (Livewire+Breeze+Laravel UI+Jetstream)や標準のバリデーションメッセージを全て一瞬で日本語化し、言語切替機能も提供するパッケージです / This package provides all-in-one Japanese translation for Laravel StarterKit (Livewire StarterKit, Breeze, Laravel UI and Jetstream) packages and validation messages with language switching feature.

590244.8k1](/packages/askdkc-breezejp)[statikbe/laravel-filament-chained-translation-manager

A translation manager tool for Laravel Filament, that makes use of the Laravel Chained Translator.

92108.7k](/packages/statikbe-laravel-filament-chained-translation-manager)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[elegantly/laravel-translator

All on one translations management for Laravel

6216.9k](/packages/elegantly-laravel-translator)[andrewdwallo/transmatic

Automate and streamline real-time text translations in your Laravel applications

5511.6k](/packages/andrewdwallo-transmatic)[smousss/laravel-globalize

Make Laravel projects translatable in a matter of seconds!

2266.3k](/packages/smousss-laravel-globalize)

PHPackages © 2026

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