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 2w 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 66% 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

2909d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1528278?v=4)[Edmund Beinarovic](/maintainers/beinarovic)[@beinarovic](https://github.com/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

[smmoosavi/php-gettext

Wrapper for php-gettext by danilo segan. This library provides PHP functions to read MO files even when gettext is not compiled in or when appropriate locale is not present on the system.

1926.6k1](/packages/smmoosavi-php-gettext)[laradevs/spanish

labels translated to spanish

166.7k](/packages/laradevs-spanish)

PHPackages © 2026

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