PHPackages                             netson/l4gettext - 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. netson/l4gettext

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

netson/l4gettext
================

Package to add Gettext support to Laravel 4 applications

1.5.1(12y ago)5911.7k8[2 issues](https://github.com/netson/l4gettext/issues)[1 PRs](https://github.com/netson/l4gettext/pulls)MITPHPPHP &gt;=5.3.0

Since Aug 14Pushed 11y ago5 watchersCompare

[ Source](https://github.com/netson/l4gettext)[ Packagist](https://packagist.org/packages/netson/l4gettext)[ Docs](https://github.com/netson/l4gettext)[ RSS](/packages/netson-l4gettext/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (8)Versions (13)Used By (0)

Gettext for Laravel 4
=====================

[](#gettext-for-laravel-4)

This package adds gettext functionality to the Laravel 4 framework which allows you to easily translate your application using tools such as PoEdit. Although Laravel 4 comes with a built-in translation engine, I prefer using tools like PoEdit, which takes away the need of maintaining arrays with text. This is my first Laravel experience/package, so if you come across any errors or have suggestions for improvements, let me know. This package works with Laravel 4.0. 4.1 and 4.2.

Written by: **Rinck Sonnenberg (Netson)**

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

[](#installation)

**Installation using composer:**

- add the netson/l4gettext as a required package:

`$ php composer.phar require "netson/l4gettext:1.5.*"`

- update composer:

`$ php composer.phar update`

- add the l4gettext service provider to the laravel app/config/app.php file, in array key 'provider':

```
