PHPackages                             mineschan/loco-laravel-export - 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. mineschan/loco-laravel-export

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

mineschan/loco-laravel-export
=============================

Export strings and translations from https://localise.biz for Laravel 5 projects

0.2(7y ago)111MITPHP

Since Feb 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mineschan/LocoLaravelExport)[ Packagist](https://packagist.org/packages/mineschan/loco-laravel-export)[ Docs](https://github.com/mineschan/locolaravelexport)[ RSS](/packages/mineschan-loco-laravel-export/feed)WikiDiscussions master Synced 2d ago

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

LocoLaravelExport
=================

[](#locolaravelexport)

[![Latest Version on Packagist](https://camo.githubusercontent.com/090a33ddbe9efbe472d79ac946911b021972754638b1f898c69a510776e963d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696e65736368616e2f6c6f636f2d6c61726176656c2d6578706f72742e7376673f7374796c653d666c6174)](https://packagist.org/packages/mineschan/loco-laravel-export)[![Total Downloads](https://camo.githubusercontent.com/d397550a94ffba7b0352e8e97fa52603fdc08f500d15277a5506afd9455664c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696e65736368616e2f6c6f636f2d6c61726176656c2d6578706f72742e7376673f7374796c653d666c6174)](https://packagist.org/packages/mineschan/loco-laravel-export)[![License](https://camo.githubusercontent.com/ba44f78d9ea4c9082f6a3937b39f942c6e84bad40a9946885b8ac45e7a116eda/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d696e65736368616e2f4c6f636f4c61726176656c4578706f72742e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/ba44f78d9ea4c9082f6a3937b39f942c6e84bad40a9946885b8ac45e7a116eda/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d696e65736368616e2f4c6f636f4c61726176656c4578706f72742e7376673f7374796c653d666c6174)

A drop in solution for exporting translations from  - A translation management tool to Laravel 5 project.

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

[](#installation)

Via Composer

```
$ composer require mineschan/loco-laravel-export
```

If you like to have custom configurations

```
$ php artisan vendor:publish --provider="mineschan\LocoLaravelExport\LocoLaravelExportServiceProvider"
```

Usage: Export
-------------

[](#usage-export)

#### Step 1

[](#step-1)

Add your Export Key as `LOCO_EXPORT_API_KEY` in `.env`

#### Step 2

[](#step-2)

Save all available languages to resources/lang directory.

```
$ php artisan localise:export
```

#### Done!

[](#done)

---

By default the package export all available languages from your Loco porjects, if you like to export only part of them you can specify using arguments.

```
$ php artisan localise:export en zh-Hants
```

You can pass them one by one, or you can simply pass `zh` for all `zh` locale. e.g. `zh-Hant`, `zh-TW`

##### Export in Live servers

[](#export-in-live-servers)

Just like `artisan:migrate`. If you run `localise:export` on non-local environment, confirmation will be needed.

You can pass `-f` or `--force` to make it silent. Helpful if you want to include this to your CI/CD flow.

```
$ php artisan localise:export -f
```

Usage: Get string
-----------------

[](#usage-get-string)

LocoLaravelExport saves string array files from Localise.biz to `resources/lang/{lang}/loco.php` by default.

This package provides a helper function `loco()` to help you retrieve your saved strings with this package easily.

```
loco('your_key');

```

Alternatively, you can still use Laravel `__()` helper like so `__('loco.{your_string_key}')`.

Configurable options
--------------------

[](#configurable-options)

OptiondefaultExplanationapi\_key\*(null)Export Key of Loco projectlang\_filenamelocoDefault file name after export &amp; save.locales\[\]Default languages to export if you do not specific any.downloadAchieve download options.exportExport options.Contributions
-------------

[](#contributions)

Pull request is welcomed!

This is my first composer package, please do support me by giving me stars.

Change log
----------

[](#change-log)

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

Author
------

[](#author)

- [MineS Chan](https://github.com/mineschan)

License
-------

[](#license)

MIT. Please see the [license file](license.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2639d ago

### Community

Maintainers

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

---

Top Contributors

[![mineschan](https://avatars.githubusercontent.com/u/897340?v=4)](https://github.com/mineschan "mineschan (5 commits)")

---

Tags

composer-packagei18nlaravellocotranslationtranslation-managementlaraveli18nlanguagetranslationlocolocaliseLocoLaravelExport

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mineschan-loco-laravel-export/health.svg)

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

###  Alternatives

[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)[vluzrmos/language-detector

Detect the language for your application using browser preferences, subdomains or route prefixes.

109554.8k3](/packages/vluzrmos-language-detector)[badinansoft/nova-language-switch

A Laravel Nova package to switch language in your application

26506.4k1](/packages/badinansoft-nova-language-switch)[opgginc/codezero-laravel-localized-routes

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

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[longman/laravel-multilang

Package to integrate multi language (multi locale) functionality in Laravel 5.x

5514.4k1](/packages/longman-laravel-multilang)[awes-io/localization-helper

Package for convenient work with Laravel's localization features

3527.1k4](/packages/awes-io-localization-helper)

PHPackages © 2026

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