PHPackages                             php-translation/loco-adapter - 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. php-translation/loco-adapter

ActiveLibrary

php-translation/loco-adapter
============================

Adapter for loco.

0.11.2(3y ago)251.8M—3.6%35[6 issues](https://github.com/php-translation/loco-adapter/issues)[1 PRs](https://github.com/php-translation/loco-adapter/pulls)1MITPHPPHP ^7.2 || ^8.0

Since Dec 17Pushed 2y ago5 watchersCompare

[ Source](https://github.com/php-translation/loco-adapter)[ Packagist](https://packagist.org/packages/php-translation/loco-adapter)[ RSS](/packages/php-translation-loco-adapter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (11)Versions (22)Used By (1)

Adapter for Loco
================

[](#adapter-for-loco)

[![Latest Version](https://camo.githubusercontent.com/06dfc96eb22add52c4e947ff2d5be6d090e83fb19065917a21bb242886cd6bd3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7068702d7472616e736c6174696f6e2f6c6f636f2d616461707465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/php-translation/loco-adapter/releases)[![Total Downloads](https://camo.githubusercontent.com/19517766a3b5d0d069e838b3040219b9cd6cd4114c4162de6c4bf6d14275f811/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d7472616e736c6174696f6e2f6c6f636f2d616461707465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-translation/loco-adapter)

This is an PHP-translation adapter for Loco ([Localise.biz](https://localise.biz/)).

### Install

[](#install)

```
composer require php-translation/loco-adapter
```

##### Symfony bundle

[](#symfony-bundle)

If you want to use the Symfony bundle you may activate it in kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Translation\PlatformAdapter\Loco\Bridge\Symfony\TranslationAdapterLocoBundle(),
    );
}
```

If you have one Loco project per domain you may configure the bundle like this:

```
# /app/config/config.yml
translation_adapter_loco:
  index_parameter: 'id' # 'text' or 'name'. Leave blank for "auto"  See https://localise.biz/api/docs/export/exportlocale
  projects:
    messages:
      api_key: 'foobar'
    navigation:
      api_key: 'bazbar'
      status: '!untranslated,!rejected' # if you want filter on loco translations statuses. By default only 'translated' translations are pulled.
```

If you just doing one project and have tags for all your translation domains you may use this configuration:

```
# /app/config/config.yml
translation_adapter_loco:
  index_parameter: 'id' # 'text' or 'name'. Leave blank for "auto"  See https://localise.biz/api/docs/export/exportlocale
  projects:
    acme:
      api_key: 'foobar'
      domains: ['messages', 'navigation']
```

This will produce a service named `php_translation.adapter.loco` that could be used in the configuration for the [Translation Bundle](https://github.com/php-translation/symfony-bundle).

If you need to override the [HTTPlug client](http://docs.php-http.org/en/latest/integrations/symfony-bundle.html#configure-clients):

```
# /app/config/config.yml
translation_adapter_loco:
  httplug_client: httplug.client.loco
  # You can even customize the message and uri factory
  # httplug_message_factory: null
  # httplug_uri_factory: null

httplug:
  clients:
    loco:
      factory: 'httplug.factory.guzzle6'
      plugins:
        - httplug.plugin.content_length
        - httplug.plugin.logger
      config:
        timeout: 2
```

By default it will use the discovery feature of HTTPlug.

### Documentation

[](#documentation)

Read our documentation at [http://php-translation.readthedocs.io](http://php-translation.readthedocs.io/en/latest/).

### Contribute

[](#contribute)

Do you want to make a change? Pull requests are welcome.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community28

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 68.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 ~102 days

Recently: every ~233 days

Total

21

Last Release

1400d ago

PHP version history (3 changes)0.1.0PHP ^7.0

0.9.0PHP ^7.2

0.11.1PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/401ccc5eea13c60cf807ae982af00e368e2166e2f26d8eb541dcd881a57385bc?d=identicon)[Nyholm](/maintainers/Nyholm)

---

Top Contributors

[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (43 commits)")[![damienalexandre](https://avatars.githubusercontent.com/u/225704?v=4)](https://github.com/damienalexandre "damienalexandre (2 commits)")[![marcortola](https://avatars.githubusercontent.com/u/15958009?v=4)](https://github.com/marcortola "marcortola (2 commits)")[![XWB](https://avatars.githubusercontent.com/u/1032281?v=4)](https://github.com/XWB "XWB (2 commits)")[![Ibrahimhizeoui](https://avatars.githubusercontent.com/u/23564278?v=4)](https://github.com/Ibrahimhizeoui "Ibrahimhizeoui (1 commits)")[![joshlopes](https://avatars.githubusercontent.com/u/3440849?v=4)](https://github.com/joshlopes "joshlopes (1 commits)")[![lepiaf](https://avatars.githubusercontent.com/u/1940947?v=4)](https://github.com/lepiaf "lepiaf (1 commits)")[![B-Galati](https://avatars.githubusercontent.com/u/895123?v=4)](https://github.com/B-Galati "B-Galati (1 commits)")[![nicwortel](https://avatars.githubusercontent.com/u/1055691?v=4)](https://github.com/nicwortel "nicwortel (1 commits)")[![Oipnet](https://avatars.githubusercontent.com/u/13480665?v=4)](https://github.com/Oipnet "Oipnet (1 commits)")[![pimolo](https://avatars.githubusercontent.com/u/5771858?v=4)](https://github.com/pimolo "pimolo (1 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (1 commits)")[![samvdb](https://avatars.githubusercontent.com/u/632452?v=4)](https://github.com/samvdb "samvdb (1 commits)")[![welcoMattic](https://avatars.githubusercontent.com/u/773875?v=4)](https://github.com/welcoMattic "welcoMattic (1 commits)")[![nicolas-grevin](https://avatars.githubusercontent.com/u/17196187?v=4)](https://github.com/nicolas-grevin "nicolas-grevin (1 commits)")[![bocharsky-bw](https://avatars.githubusercontent.com/u/3317635?v=4)](https://github.com/bocharsky-bw "bocharsky-bw (1 commits)")[![damienlagae](https://avatars.githubusercontent.com/u/2233003?v=4)](https://github.com/damienlagae "damienlagae (1 commits)")[![Gladhon](https://avatars.githubusercontent.com/u/946885?v=4)](https://github.com/Gladhon "Gladhon (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/php-translation-loco-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/php-translation-loco-adapter/health.svg)](https://phpackages.com/packages/php-translation-loco-adapter)
```

###  Alternatives

[behat/behat

Scenario-oriented BDD framework for PHP

4.0k96.8M2.0k](/packages/behat-behat)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)

PHPackages © 2026

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