PHPackages                             sunaoka/phpunit-laravel-localization - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. sunaoka/phpunit-laravel-localization

ActiveLibrary[Testing &amp; Quality](/categories/testing)

sunaoka/phpunit-laravel-localization
====================================

Laravel Localization PHPUnit testing

v1.0.1(5mo ago)1108↓75%MITPHPPHP ^8.1CI passing

Since Jun 10Pushed 5mo agoCompare

[ Source](https://github.com/sunaoka/phpunit-laravel-localization)[ Packagist](https://packagist.org/packages/sunaoka/phpunit-laravel-localization)[ RSS](/packages/sunaoka-phpunit-laravel-localization/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (7)Versions (3)Used By (0)

Laravel Localization PHPUnit testing
====================================

[](#laravel-localization-phpunit-testing)

[![Latest](https://camo.githubusercontent.com/d17421b0c9a3dd4542b44334fecb7f53c53ab9d31246abc9a56b1eed2a206de4/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f706870756e69742d6c61726176656c2d6c6f63616c697a6174696f6e2f76)](https://packagist.org/packages/sunaoka/phpunit-laravel-localization)[![License](https://camo.githubusercontent.com/106296b3e388acb0291b4b9c31132fb58fbceaa7bcd87fb9ea9d0e84f5085fab/68747470733a2f2f706f7365722e707567782e6f72672f73756e616f6b612f706870756e69742d6c61726176656c2d6c6f63616c697a6174696f6e2f6c6963656e7365)](https://packagist.org/packages/sunaoka/phpunit-laravel-localization)[![PHP](https://camo.githubusercontent.com/bf00b306750d683f361eb50f1aa7e0426bbcc6af5d8ecc1bc78724144cb86d5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73756e616f6b612f706870756e69742d6c61726176656c2d6c6f63616c697a6174696f6e)](composer.json)[![Test](https://github.com/sunaoka/phpunit-laravel-localization/actions/workflows/test.yml/badge.svg)](https://github.com/sunaoka/phpunit-laravel-localization/actions/workflows/test.yml)[![codecov](https://camo.githubusercontent.com/5d63faf68822c8a9486dba24beb243dc51554e6b82d86365f260ea919d5543de/68747470733a2f2f636f6465636f762e696f2f67682f73756e616f6b612f706870756e69742d6c61726176656c2d6c6f63616c697a6174696f6e2f67726170682f62616467652e737667)](https://codecov.io/gh/sunaoka/phpunit-laravel-localization)

---

Features
--------

[](#features)

- Detect translation keys that are only used in “application” files.
- Detect translation keys defined only in “lang” files.
- Test to see if the translation keys for each language match, including the order

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

[](#installation)

```
composer require --dev sunaoka/phpunit-laravel-localization
```

Usage
-----

[](#usage)

```
