PHPackages                             amamarul/laravel-json-locations-manager - 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. amamarul/laravel-json-locations-manager

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

amamarul/laravel-json-locations-manager
=======================================

Laravel Json Locations Manager. Import all app language strings from lang folder

1.0.3(9y ago)113.4k1[1 issues](https://github.com/amamarul/laravel-json-locations-manager/issues)MITPHP

Since Feb 24Pushed 9y ago4 watchersCompare

[ Source](https://github.com/amamarul/laravel-json-locations-manager)[ Packagist](https://packagist.org/packages/amamarul/laravel-json-locations-manager)[ RSS](/packages/amamarul-laravel-json-locations-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Laravel Json Localization Manager
=================================

[](#laravel-json-localization-manager)

This is a package to manage json strings for the new Laravel 5.4 Localization Translation Strings As Keys. [Using Translation Strings As Keys](https://laravel.com/docs/5.4/localization#using-translation-strings-as-keys "Using Translation Strings As Keys")

Composer require
----------------

[](#composer-require)

```
$ composer require amamarul/laravel-json-locations-manager
```

Add Provider into config/app.php
--------------------------------

[](#add-provider-into-configappphp)

```
Amamarul\LaravelJsonLocationsManager\Providers\LaravelJsonLocationsManagerServiceProvider::class,
```

### For Only local environment

[](#for-only-local-environment)

Add the following to the AppServiceProvider in the register function:

#### app/Providers/AppServiceProvider.php

[](#appprovidersappserviceproviderphp)

```
 if ($this->app->environment() == 'local' || $this->app->environment() == 'testing') {
     /*
      * Load third party local providers
      */
     $this->app->register(\Amamarul\LaravelJsonLocationsManager\Providers\LaravelJsonLocationsManagerServiceProvider::class);
 }
```

Package install
---------------

[](#package-install)

Run in console this command

```
$ php artisan amamarul:location:install
```

This command install database and will ask if you want to import the existing locations in the application. There are 2 questions, the first to import the strings in arrays and the second to import the existing strings into json files. This will pupulate the database with all strings. You don't need to run artisan migrate, this package uses an independent database (sqlite).

### Other Console Command

[](#other-console-command)

You can publish all languages Json files in console running

```
$ php artisan amamarul:location:publish
```

Of course you also can do that in browser views.

Manage Locations
----------------

[](#manage-locations)

Now you can access to /translations/home in your browser and manage all langs strings.

- Search Language Strings
- Add new Language
- Add new Strings
- Edit Strings
- Publish / Update json Files

Publish the views and config file
---------------------------------

[](#publish-the-views-and-config-file)

```
$ php artisan vendor:publish --provider='Amamarul\LaravelJsonLocationsManager\Providers\LaravelJsonLocationsManagerServiceProvider'
```

### In the config file you can call your custom layout, the content section and the scripts section (this is important for the edit views) and routes prefix and middlewares.

[](#in-the-config-file-you-can-call-your-custom-layout-the-content-section-and-the-scripts-section-this-is-important-for-the-edit-views-and-routes-prefix-and-middlewares)

Routes middlewares
------------------

[](#routes-middlewares)

in config file you can add your middlewares, by default is only 'web' middleware

### Feel free to send improvements

[](#feel-free-to-send-improvements)

Created by [amamarul](https://github.com/amamarul "https://github.com/amamarul")

To Improve
----------

[](#to-improve)

There are a problem with the route('') in the strings. In Json generation they are converted to url format('http://...'). If you don´t use helpers that is no a problem, but I would like to solve that. If someone discover the way to fix that I would appreciate it very much.

Some Screenshots
================

[](#some-screenshots)

[![Home View](https://cloud.githubusercontent.com/assets/17328721/23283406/6f223750-fa04-11e6-88fb-0f8c7845206b.png)](https://cloud.githubusercontent.com/assets/17328721/23283406/6f223750-fa04-11e6-88fb-0f8c7845206b.png)[![Language View 1](https://cloud.githubusercontent.com/assets/17328721/23283411/7865e5f0-fa04-11e6-8097-d01728d4090d.png)](https://cloud.githubusercontent.com/assets/17328721/23283411/7865e5f0-fa04-11e6-8097-d01728d4090d.png)[![Language View 2](https://cloud.githubusercontent.com/assets/17328721/23283416/80c19ece-fa04-11e6-8448-0c5eae424b85.png)](https://cloud.githubusercontent.com/assets/17328721/23283416/80c19ece-fa04-11e6-8448-0c5eae424b85.png)[![Language Edit 1](https://cloud.githubusercontent.com/assets/17328721/23283420/87986f16-fa04-11e6-9b2d-30b23cf278a2.png)](https://cloud.githubusercontent.com/assets/17328721/23283420/87986f16-fa04-11e6-9b2d-30b23cf278a2.png)[![Individual String View](https://cloud.githubusercontent.com/assets/17328721/23283427/9596da6c-fa04-11e6-86b4-5a69b2f85ea6.png)](https://cloud.githubusercontent.com/assets/17328721/23283427/9596da6c-fa04-11e6-86b4-5a69b2f85ea6.png)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Every ~0 days

Total

4

Last Release

3365d ago

### Community

Maintainers

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

---

Tags

json-localizationlaravellaravel54localization-managementlocalization-toollocalization-using-json-filespackagestring-json-localizationlaravellaravel 5.4Laravel Json Locations ManagerLaravel 5.4 Localization Using Translation Strings As Keys

### Embed Badge

![Health badge](/badges/amamarul-laravel-json-locations-manager/health.svg)

```
[![Health](https://phpackages.com/badges/amamarul-laravel-json-locations-manager/health.svg)](https://phpackages.com/packages/amamarul-laravel-json-locations-manager)
```

###  Alternatives

[monarobase/country-list

List of all countries with names and ISO 3166-1 codes in all languages and data formats for Laravel

2672.7M7](/packages/monarobase-country-list)[stevegrunwell/lost-in-translation

Uncover missing translations and localization strings in Laravel applications

3635.7k](/packages/stevegrunwell-lost-in-translation)[zachleigh/laravel-lang-bundler

Create Laravel translations bundles.

2512.5k](/packages/zachleigh-laravel-lang-bundler)[kerigard/laravel-lang-ru

Ru lang for Laravel

2116.8k](/packages/kerigard-laravel-lang-ru)

PHPackages © 2026

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