This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.
This package is abandoned and no longer maintained. The author suggests using the astrotomic/laravel-translatable package instead.

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

v0.1-alpha 2016-09-29 13:31 UTC

This package is not auto-updated.

Last update: 2019-10-22 12:05:35 UTC


GitHub Author GitHub release GitHub license GitHub issues

Travis branch StyleCI Code Climate Code Climate Code Climate

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


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


return [
    'providers' => [
    'aliases' => [
        'Trans' => Astrotomic\Laravel\Translation\Facades\TranslatorFacade::class,


composer update
artisan vendor:publish


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.