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

Abandoned → [astrotomic/laravel-translatable](/?search=astrotomic%2Flaravel-translatable)ArchivedLibrary[Localization &amp; i18n](/categories/localization)

astrotomic/laravel-translation
==============================

A Laravel 5 package that implements the Symfony Po-Translation lib.

v0.1-alpha(9y ago)691MITPHPPHP &gt;=5.5.0

Since Sep 29Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Astrotomic/laravel-translation)[ Packagist](https://packagist.org/packages/astrotomic/laravel-translation)[ RSS](/packages/astrotomic-laravel-translation/feed)WikiDiscussions master Synced 2mo ago

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

Laravel Translation
===================

[](#laravel-translation)

[![GitHub Author](https://camo.githubusercontent.com/bae83cc9cc7c6ce7654140ba96f3ae74d1b2b6c04a0b3089b16e46acc59332ec/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40617374726f746f6d69632d6f72616e67652e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic)[![GitHub release](https://camo.githubusercontent.com/1f05882609c8ef4862fef11c87c63010a19fa9f4953cf712fc15b64f540cf48d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f617374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic/laravel-translation/releases)[![GitHub license](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/Astrotomic/laravel-translation/master/LICENSE)[![GitHub issues](https://camo.githubusercontent.com/321ea9fd7129e349ef8ae83b0f97d46544c67348fd84c576b0879c87ff29c636/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f417374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Astrotomic/laravel-translation/issues)

[![Travis branch](https://camo.githubusercontent.com/bd072fc847747483e3cda3ff55b9f714d6ae5e04bccd2a3c0a72c186443cb8e3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f417374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Astrotomic/laravel-translation/branches)[![StyleCI](https://camo.githubusercontent.com/0aa39d98a9aa6f156d08801587bf239e75578eae16665edb69cc3385db0a54c4/68747470733a2f2f7374796c6563692e696f2f7265706f732f34363937333438342f736869656c64)](https://styleci.io/repos/46973484)[![Code Climate](https://camo.githubusercontent.com/9d6cdd285679d01618c400299df9501731f398d90041ce875b4d817b150af718/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f417374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/laravel-translation)[![Code Climate](https://camo.githubusercontent.com/1fe867e22e215fa0bd5ddb2ead1fdcb09b4399088efb00913778f4500c2d601b/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f417374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/laravel-translation/coverage)[![Code Climate](https://camo.githubusercontent.com/e5097a5ca0fc10c6ca095efd6274ba9e126bcbee33f880997a6289fb1f58f5f2/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6973737565732f6769746875622f417374726f746f6d69632f6c61726176656c2d7472616e736c6174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Astrotomic/laravel-translation/issues)

This is a laravel wrapper for the Symfony PoTranslator. It comes with two global helper functions `__()` and `_n()`.

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

[](#installation)

**composer.json** `"astrotomic/laravel-translation": "dev-master"`

**config/app.php**

```
return [
    ...
    'providers' => [
        Astrotomic\Laravel\Translation\TranslatorServiceProvider::class,
    ],
    ...
    'aliases' => [
        'Trans' => Astrotomic\Laravel\Translation\Facades\TranslatorFacade::class,
    ],
    ...
];

```

**console**

```
composer update
artisan vendor:publish

```

Usage
-----

[](#usage)

To generate the po files you first have to compile all your views, PoEdit can't handle blade, to do this use the artisan command `artisan view:compile`. After this you can generate the po files and the proper header with `artisan trans:po`. To collect and translate all the strings use PoEdit.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Unknown

Total

1

Last Release

3513d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravellaravel-translatorpackagephppo-filespoedittranslation

### Embed Badge

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

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

###  Alternatives

[tightenco/jigsaw

Simple static sites with Laravel's Blade.

2.2k438.5k29](/packages/tightenco-jigsaw)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[mariuzzo/laravel-js-localization

Laravel Localization in JavaScript

6073.9M3](/packages/mariuzzo-laravel-js-localization)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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