PHPackages                             joeri-abbo/laravel-easy-translations - 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. [CLI &amp; Console](/categories/cli)
4. /
5. joeri-abbo/laravel-easy-translations

ActiveLibrary[CLI &amp; Console](/categories/cli)

joeri-abbo/laravel-easy-translations
====================================

Laravel laravel-easy-translations support

1.0.2(3y ago)02.0k1[3 PRs](https://github.com/Joeri-Abbo/laravel-easy-translations/pulls)CSSCI passing

Since Jun 6Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/Joeri-Abbo/laravel-easy-translations)[ Packagist](https://packagist.org/packages/joeri-abbo/laravel-easy-translations)[ RSS](/packages/joeri-abbo-laravel-easy-translations/feed)WikiDiscussions master Synced 1mo ago

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

### Laravel Easy Translations

[](#laravel-easy-translations)

[![Test](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/test.yml/badge.svg)](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/test.yml)[![Test](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/psalm.yml/badge.svg)](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/psalm.yml)[![Test](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/codeql-analysis.yml)[![Test](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/composer-normalize.yml/badge.svg)](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/composer-normalize.yml)[![Test](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/php-normalize.yml/badge.svg)](https://github.com/Joeri-Abbo/laravel-easy-translations/actions/workflows/php-normalize.yml)

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- Php 8 and up
- Laravel 9

### Installation

[](#installation)

To get started require the package with composer.

```
composer require joeri-abbo/laravel-easy-translations
```

After installing the package in to your laravel project run the command below to add the config and create the language folder.

```
php artisan laravel-easy-translations:install
```

You can custom the dir for the language file storage by editing the config setting storage\_path to your wanted path. After changing this setting the dir automatically will be generated when a transulation is called. You can also force it by running

```
php artisan laravel-easy-translations:install
```

Usage
-----

[](#usage)

You can easily use the translate function in your application. The first parameter is required the second one is your language pack. Default it uses your default set in the config. If you do not change this it will be english.

```
