PHPackages                             smousss/laravel-globalize - 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. smousss/laravel-globalize

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

smousss/laravel-globalize
=========================

Make Laravel projects translatable in a matter of seconds!

0.1.5(3y ago)2266.3k—9.9%MITPHPPHP ^8.1

Since Apr 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/smousss/laravel-globalize)[ Packagist](https://packagist.org/packages/smousss/laravel-globalize)[ Docs](https://github.com/smousss/laravel-globalize)[ RSS](/packages/smousss-laravel-globalize/feed)WikiDiscussions main Synced 1mo ago

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

[![Globalize](https://user-images.githubusercontent.com/3613731/233782928-31e9677d-4c0c-4726-923e-ce6a7086c85d.png)](https://user-images.githubusercontent.com/3613731/233782928-31e9677d-4c0c-4726-923e-ce6a7086c85d.png)

Make entire Laravel projects translatable
=========================================

[](#make-entire-laravel-projects-translatable)

[![Latest Version on Packagist](https://camo.githubusercontent.com/778fcb9635f044f11d406fbb628b76b359aa4e2b69f764db74a9dca61917b8af/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736d6f757373732f6c61726176656c2d676c6f62616c697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smousss/laravel-globalize)[![GitHub Tests Action Status](https://camo.githubusercontent.com/10127d08de4b13fcc060eabd8e3fc4e7b9a08c29b2d1323a1679c7ceb7190a5c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f736d6f757373732f6c61726176656c2d676c6f62616c697a652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/smousss/laravel-globalize/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3acf4f13ff67f870fc75d92c279cad806cca8b6a53c803bd3f71b3418660aa44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736d6f757373732f6c61726176656c2d676c6f62616c697a652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/smousss/laravel-globalize)

Wrapping up every translatable piece of text in every view of an existing Laravel project inside the \_\_() helper is a time-consuming and boring assignment. Luckily, artificial intelligence is perfectly suited for repetitive actions.

```
-Create a new post
+{{ __('Create a new post') }}
…
-© {{ config('app.name') }} {{ date('Y') }}. All rights reserved.
+{{ __('© :name :date. All rights reserved.', [
+    'name' => config('app.name'),
+    'date' => date('Y'),
+]) }}
```

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

[](#installation)

Install the package via Composer:

```
composer require smousss/laravel-globalize
```

Publish the config file:

```
php artisan vendor:publish --tag=globalize-config
```

Usage
-----

[](#usage)

First, [generate a secret key](https://smousss.com/dashboard) on smousss.com.

Then, add it to your `SMOUSSS_SECRET_KEY` environment variable.

Finally, internationalize your views:

```
php artisan smousss:globalize
```

Globalize will ask you if you want to process all your views or a selection of them.

```
Should Globalize process a particular file or everything? [Choose files]:
[0] Choose files
[1] Process everything!
```

Credits
-------

[](#credits)

Globalize for Laravel has been developed by [Benjamin Crozat](https://benjamincrozat.com) for [Smousss](https://smousss.com) ([Twitter](https://twitter.com/benjamincrozat)).

License
-------

[](#license)

[MIT](LICENSE.md)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

6

Last Release

1125d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/116ab4accb98f026761db5260781ba651372c2ff646b8f42f68d9780e4d602bf?d=identicon)[benjamincrozat](/maintainers/benjamincrozat)

---

Top Contributors

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

---

Tags

laravellocalizationinternationalizationi18ntranslationaiGPT-3openaiartificial intelligenceChatGptgpt-4smoussslaravel-globalize

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/smousss-laravel-globalize/health.svg)

```
[![Health](https://phpackages.com/badges/smousss-laravel-globalize/health.svg)](https://phpackages.com/packages/smousss-laravel-globalize)
```

###  Alternatives

[jrmajor/fluent

Fluent localization system for PHP

2716.9k5](/packages/jrmajor-fluent)

PHPackages © 2026

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