andrewdevelop/api-localization

Basic locale switcher for Lumen
7
Install
composer require andrewdevelop/api-localization
PHP:^7.2
License:MIT
Last Updated:Mar 27, 2020
Links: GitHub  ·  Packagist
Maintainer: AndrewOverlord

Install:

composer require andrewdevelop/api-localization:dev-master

Register service provider:

Open your bootstrap/app.php file and paste this

$app->register(Core\Localization\LocalizationServiceProvider::class)

Configure:

Open your .env file and set default locale and the comma-separated list of available locales

APP_LOCALE=en
APP_LOCALES=en,ar,ru

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

21,010,090 1,982
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,282,182 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,095,827 2,586
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,372,487 272