PHPackages                             larswiegers/translation-export-for-laravel - 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. larswiegers/translation-export-for-laravel

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

larswiegers/translation-export-for-laravel
==========================================

Export your translations to many outputs.

00[4 PRs](https://github.com/LarsWiegers/translation-export-for-laravel/pulls)PHPCI passing

Since Jan 12Pushed 3mo agoCompare

[ Source](https://github.com/LarsWiegers/translation-export-for-laravel)[ Packagist](https://packagist.org/packages/larswiegers/translation-export-for-laravel)[ RSS](/packages/larswiegers-translation-export-for-laravel/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (6)Used By (0)

Export your translations to many outputs.
=========================================

[](#export-your-translations-to-many-outputs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/850fd46d3510354509464c0f1ecd15ea8f9cc98ecc7bba0c71783293e234036b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c617273776965676572732f7472616e736c6174696f6e2d6578706f72742d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larswiegers/translation-export-for-laravel)[![GitHub Tests Action Status](https://camo.githubusercontent.com/af1eacda3f4eab1347ba9779a1a51e21c43e031b7fc366735e9bcb3703871644/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c617273776965676572732f7472616e736c6174696f6e2d6578706f72742d666f722d6c61726176656c2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/larswiegers/translation-export-for-laravel/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/c63613a0745832fdacb0d8cf088b7ce8c349eead813f37d770c41caa599ddb16/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c617273776965676572732f7472616e736c6174696f6e2d6578706f72742d666f722d6c61726176656c2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/larswiegers/translation-export-for-laravel/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/3b7511f77f8a811ab3d6a9fba1bf77465aea316ee2edb33e117cd6cfd11c4bb2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c617273776965676572732f7472616e736c6174696f6e2d6578706f72742d666f722d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larswiegers/translation-export-for-laravel)

This package allows you to export your Laravel translations to JSON files.

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/b6d7cc313e4abe27a1592cdb75d7c84c1dcfc95b3a52b614a0894ff00422055e/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f7472616e736c6174696f6e2d6578706f72742d666f722d6c61726176656c2e6a70673f743d31)](https://spatie.be/github-ad-click/translation-export-for-laravel)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require larswiegers/translation-export-for-laravel
```

Usage
-----

[](#usage)

Export all translations for a single language:

```
php artisan translations:export en
```

Export all translations for all languages, each to their own file:

```
php artisan translations:export
```

Export all translations for all languages to a single file:

```
php artisan translations:export --all
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lars Wiegers](https://github.com/LarsWiegers)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance52

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 72.7% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20204608?v=4)[Lars Wiegers](/maintainers/LarsWiegers)[@LarsWiegers](https://github.com/LarsWiegers)

---

Top Contributors

[![LarsWiegers](https://avatars.githubusercontent.com/u/20204608?v=4)](https://github.com/LarsWiegers "LarsWiegers (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

### Embed Badge

![Health badge](/badges/larswiegers-translation-export-for-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/larswiegers-translation-export-for-laravel/health.svg)](https://phpackages.com/packages/larswiegers-translation-export-for-laravel)
```

###  Alternatives

[smarty-gettext/smarty-gettext

Gettext plugin enabling internationalization in Smarty Package files

752.5M8](/packages/smarty-gettext-smarty-gettext)[devaslanphp/auto-translate

Auto generate translation JSON files

6627.3k](/packages/devaslanphp-auto-translate)

PHPackages © 2026

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