PHPackages                             alicorn/lokalise-bundle - 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. alicorn/lokalise-bundle

ActiveSymfony-bundle[Localization &amp; i18n](/categories/localization)

alicorn/lokalise-bundle
=======================

A Symfony Lokalise translation bundle

v0.1.4(7y ago)225.6k2MITPHP

Since May 3Pushed 6y ago1 watchersCompare

[ Source](https://github.com/beinarovic/lokalise-bundle)[ Packagist](https://packagist.org/packages/alicorn/lokalise-bundle)[ RSS](/packages/alicorn-lokalise-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (6)Used By (0)

Symfony webhook bundle for Lokalise
===================================

[](#symfony-webhook-bundle-for-lokalise)

This bundle receives the webhook from lokalise.co and uploads the new translation files to your directories.

1. Installing the bundle
------------------------

[](#1-installing-the-bundle)

Require it with composer.

```
composer require alicorn/lokalise-bundle
```

2. Enable the bundle in your kernel
-----------------------------------

[](#2-enable-the-bundle-in-your-kernel)

```
// app/AppKernel.php

public function registerBundles()
{
    return array(
        // ...
        new Alicorn\LokaliseBundle\AlicornLokaliseBundle(),
        // ...
    );
}
```

3. Configure the bundle routing
-------------------------------

[](#3-configure-the-bundle-routing)

```
# app/config/routing.yml

# Webhook url configuration
alicorn_lokalise:
    resource: "@AlicornLokaliseBundle/Controller/"
    type:     annotation
    prefix:   /lokalise/webhook/ # your webhook url
```

4. Configure the bundle
-----------------------

[](#4-configure-the-bundle)

```
# app/config/config.yml

# ...

alicorn_lokalise:
    # Webhook configuration
    host: "https://s3-eu-west-1.amazonaws.com/lokalise-assets/" # Lokalise host for downloads can be overwritten
    web_path: "web/locales" # Path for locale files #1
    symfony_path: "app/Resources/translations" # Path for locale files #2, can be blank
    extract_file: "/tmp/langs.zip"

    # API configuration
    api:
        api_token: "XXXXXXXXXXXXXXXXXXXXXX"
        project_id: "XXXXXXXXXXXXXXXXXXXXXX"
        type: "json"
        use_original: "0"
        bundle_structure: "%%LANG_ISO%%.%%FORMAT%%"
        base_url: "https://lokalise.co/api/"
        directory_prefix: "%%LANG_ISO%%"
```

5. Configure webhook on lokalise
--------------------------------

[](#5-configure-webhook-on-lokalise)

Configure your webhook on lokalise.

[![screen shot 2017-05-03 at 16 43 42](https://cloud.githubusercontent.com/assets/1528278/25663213/b84c424e-301f-11e7-8903-44ee004b26ab.png)](https://cloud.githubusercontent.com/assets/1528278/25663213/b84c424e-301f-11e7-8903-44ee004b26ab.png)

When building the project in lokalise, it will trigger the webhook and unzip the translation files to the configured directories.

6. Download translations via cli
--------------------------------

[](#6-download-translations-via-cli)

If the API is configured, you can use the import command to update all translation files locally.

```
php bin/console lokalise:import
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~109 days

Total

5

Last Release

2862d ago

### Community

Maintainers

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

---

Top Contributors

[![beinarovic](https://avatars.githubusercontent.com/u/1528278?v=4)](https://github.com/beinarovic "beinarovic (7 commits)")[![renjinsk](https://avatars.githubusercontent.com/u/456717?v=4)](https://github.com/renjinsk "renjinsk (1 commits)")

---

Tags

symfony lokalise translation bundle

### Embed Badge

![Health badge](/badges/alicorn-lokalise-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/alicorn-lokalise-bundle/health.svg)](https://phpackages.com/packages/alicorn-lokalise-bundle)
```

###  Alternatives

[symfony/translation

Provides tools to internationalize your application

6.6k836.5M2.1k](/packages/symfony-translation)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

169661.4M4.8k](/packages/nesbot-carbon)[joedixon/laravel-translation

A tool for managing all of your Laravel translations

717911.4k11](/packages/joedixon-laravel-translation)[illuminate/translation

The Illuminate Translation package.

6936.4M495](/packages/illuminate-translation)[lajax/yii2-translate-manager

Translation management extension for Yii 2

227578.8k13](/packages/lajax-yii2-translate-manager)[larswiegers/laravel-translations-checker

Make sure your laravel translations are checked and are included in all languages.

256423.2k2](/packages/larswiegers-laravel-translations-checker)

PHPackages © 2026

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