PHPackages                             robinfranssen/analyzelocale - 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. robinfranssen/analyzelocale

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

robinfranssen/analyzelocale
===========================

This scans your laravel project for used locale keys that aren't translated by your locale files.

0.1.5(8y ago)2520.7k↓50%4[2 issues](https://github.com/aXent/laravel-analyze-locale/issues)MITPHPPHP &gt;=5.4.0

Since Mar 9Pushed 8y ago2 watchersCompare

[ Source](https://github.com/aXent/laravel-analyze-locale)[ Packagist](https://packagist.org/packages/robinfranssen/analyzelocale)[ Docs](https://github.com/aXent/laravel-analyze-locale)[ RSS](/packages/robinfranssen-analyzelocale/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (0)

Translation helpers for Laravel 5
=================================

[](#translation-helpers-for-laravel-5)

---

**NOTE: As of laravel 5.2.20 you need version ^0.1.4. For laravel 5.2.19 or lower you need version 0.1.3 of this package.**

---

This package provides you with commands to analyze the translation keys used in your Laravel 5 application.

These commands can detect untranslated and invalid keys.

[![Alt text](https://camo.githubusercontent.com/c9d165419d7ddec21da311ff6608cfe6e1538e75f49ddc8a135767195a8b0a3a/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74302e706e67 "Scan everything")](https://camo.githubusercontent.com/c9d165419d7ddec21da311ff6608cfe6e1538e75f49ddc8a135767195a8b0a3a/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74302e706e67)

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

[](#installation)

```
composer require robinfranssen/analyzelocale --dev
```

Add the service provider:

```
// config/app.php

'providers' => [
	...
	'RobinFranssen\AnalyzeLocale\Providers\ServiceProvider',
	...
],
```

Usage
-----

[](#usage)

From the command line, run `php artisan locale:scan` to see a full overview of the analyzation. This will show you all information provided by the three other locale commands.

[![Alt text](https://camo.githubusercontent.com/151fd29b5719136cea3af931c9042f4a797a94945b6fc0828240018b34ce5c77/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74312e706e67 "Scan everything")](https://camo.githubusercontent.com/151fd29b5719136cea3af931c9042f4a797a94945b6fc0828240018b34ce5c77/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74312e706e67)

`php artisan locale:invalid` will show you the invalid keys.

[![Alt text](https://camo.githubusercontent.com/1dfed7a781cbfe2d4eab40205e196c4b007062f841974cbe3cab15cae9035492/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74322e706e67 "Scan invalid keys")](https://camo.githubusercontent.com/1dfed7a781cbfe2d4eab40205e196c4b007062f841974cbe3cab15cae9035492/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74322e706e67)

`php artisan locale:untranslated` will show you the untranslated keys.

[![Alt text](https://camo.githubusercontent.com/c92a48ab729fcb1c5cb0e32c37bc3691aaf57657b227de11f37d3ce50c8ea851/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74332e706e67 "Scan untranslated keys")](https://camo.githubusercontent.com/c92a48ab729fcb1c5cb0e32c37bc3691aaf57657b227de11f37d3ce50c8ea851/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74332e706e67)

`php artisan locale:allkeys` will show you a table with untranslated and invalid keys.

[![Alt text](https://camo.githubusercontent.com/ae3892050a0c72299b2be86601bcc34c79c138d56c9a40a40099fb7c99c3b58f/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74342e706e67 "scan all keys")](https://camo.githubusercontent.com/ae3892050a0c72299b2be86601bcc34c79c138d56c9a40a40099fb7c99c3b58f/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74342e706e67)

Every command supports the --locale flag. For example: `php artisan locale:allkeys --locale=nl`

[![Alt text](https://camo.githubusercontent.com/ade6ba9b40ff5b576158f897813c6e43d8ff7c2dbbc364ea94e44d10a27a7fe6/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74352e706e67 "Scan with different locale")](https://camo.githubusercontent.com/ade6ba9b40ff5b576158f897813c6e43d8ff7c2dbbc364ea94e44d10a27a7fe6/687474703a2f2f7777772e726f62696e6672616e7373656e2e62652f73637265656e73686f74352e706e67)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.3% of commits — single point of failure

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 ~161 days

Recently: every ~201 days

Total

6

Last Release

3282d ago

### Community

Maintainers

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

---

Top Contributors

[![aXent](https://avatars.githubusercontent.com/u/506956?v=4)](https://github.com/aXent "aXent (13 commits)")[![angelside](https://avatars.githubusercontent.com/u/7515?v=4)](https://github.com/angelside "angelside (1 commits)")[![fixwa](https://avatars.githubusercontent.com/u/1794477?v=4)](https://github.com/fixwa "fixwa (1 commits)")[![tvbeek](https://avatars.githubusercontent.com/u/2026498?v=4)](https://github.com/tvbeek "tvbeek (1 commits)")

---

Tags

translationartisanlocalecommandanalyze

### Embed Badge

![Health badge](/badges/robinfranssen-analyzelocale/health.svg)

```
[![Health](https://phpackages.com/badges/robinfranssen-analyzelocale/health.svg)](https://phpackages.com/packages/robinfranssen-analyzelocale)
```

###  Alternatives

[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9693.2M10](/packages/fightbulc-moment)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[tractorcow/silverstripe-fluent

Simple localisation for Silverstripe

92421.6k26](/packages/tractorcow-silverstripe-fluent)[laravel-lang/locales

Basic functionality for working with localizations

134.5M12](/packages/laravel-lang-locales)[skillshare/formatphp

Internationalize PHP apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

8029.6k](/packages/skillshare-formatphp)[fisharebest/localization

A lightweight localization database and translation tools, with data from the CLDR, IANA, ISO, etc.

3191.1k2](/packages/fisharebest-localization)

PHPackages © 2026

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