PHPackages                             kunicmarko/static-translations - 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. kunicmarko/static-translations

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

kunicmarko/static-translations
==============================

This is a Symfony Bundle that helps you to generate translations for static/hardcoded strings from Excel files, thanks to the PHPExcel library

1.0.5(9y ago)299MITPHPPHP ^5.2|^7.0

Since Apr 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kunicmarko20/static-translations)[ Packagist](https://packagist.org/packages/kunicmarko/static-translations)[ Docs](https://github.com/kunicmarko20/static-translation)[ RSS](/packages/kunicmarko-static-translations/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Symfony Static Translations Bundle
==================================

[](#symfony-static-translations-bundle)

This bundle helps you generate translation for static strings in symfony application.

[![Total Downloads](https://camo.githubusercontent.com/af0da5a6932bd5e5023528c5d8351aab1c248abee88e092d6f4dffaa42622611/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f7374617469632d7472616e736c6174696f6e732f646f776e6c6f616473)](https://packagist.org/packages/kunicmarko/static-translations)[![Latest Stable Version](https://camo.githubusercontent.com/f3b59b8d7593fb469e75455b6bc11de03d11eaa9ef62f8da0f05daa84d83bb5a/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f7374617469632d7472616e736c6174696f6e732f762f737461626c65)](https://packagist.org/packages/kunicmarko/static-translations)[![Latest Unstable Version](https://camo.githubusercontent.com/9bc624759efdee6e2d7293cd845fb0b427214d15b17169570137bf44407e4d04/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f7374617469632d7472616e736c6174696f6e732f762f756e737461626c65)](https://packagist.org/packages/kunicmarko/static-translations)[![License](https://camo.githubusercontent.com/798cd95b083c728d903ca5226830d1fc061f95a649a948d77f731955932cfabb/68747470733a2f2f706f7365722e707567782e6f72672f6b756e69636d61726b6f2f7374617469632d7472616e736c6174696f6e732f6c6963656e7365)](https://packagist.org/packages/kunicmarko/static-translations)

This bundle uses [PHPOffice/PHPExcel](https://github.com/PHPOffice/PHPExcel) bundle

PHPExcel bundle Requirements
----------------------------

[](#phpexcel-bundle-requirements)

- PHP version 5.2.0 or higher
- PHP extension php\_zip enabled (required if you need PHPExcel to handle .xlsx .ods or .gnumeric files)
- PHP extension php\_xml enabled
- PHP extension php\_gd2 enabled (optional, but required for exact column width autocalculation)

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

[](#installation)

**1.** Add to composer.json to the `require` key

```
composer require --dev kunicmarko/static-translations

```

**2.** Register the bundle in `app/AppKernel.php`

```
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
    // ...
    $bundles[] =  new KunicMarko\StaticTranslationsBundle\StaticTranslationsBundle();
}

```

Command
-------

[](#command)

`php app/console generate:static:translations /path/to/excel/file languages`

Command accepts 2 parameters, you can run it without parameters and then you get interactive console with help on how to use command

Parameters
----------

[](#parameters)

**1.** Excel file

Provide path to your Excel file that has to end with `.xlsx`

Formating of Excel file ( can also be found [here](https://docs.google.com/spreadsheets/d/1-eIna3LE16ViSWIp91YMheAZ3nXVN1hnGsYkR_dLxjY) ):

AB1EnglishGerman23About UsÜber unslabel.about4ContactKontakt5ImprintImpressumform.imprint, default.language.sourceWe expect words for translation to start from line 3

You can add more languages, we only expect labels to be at last position

Labels are `optional`, there can be more than one label for same word, they just have to be divided by comma (,)

If you add labels, label names will be used for `source` tags in xml

If you want to use default language word for source and use labels for same word, you can use reserved word `default.language.source` and add it in labels part

**2.** Languages

We expect array of language codes, divided by space e.g. `en de fr`, use same order as in your excel file.

`First language in array is source language and will be used for all source tags.`

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13528674?v=4)[Marko Kunic](/maintainers/kunicmarko20)[@kunicmarko20](https://github.com/kunicmarko20)

---

Top Contributors

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

---

Tags

generatorstatic-translationssymfony-bundlesymfony-consoletranslationsbundletranslationsSymfony2staticsymfony-translation

### Embed Badge

![Health badge](/badges/kunicmarko-static-translations/health.svg)

```
[![Health](https://phpackages.com/badges/kunicmarko-static-translations/health.svg)](https://phpackages.com/packages/kunicmarko-static-translations)
```

###  Alternatives

[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4382.8M19](/packages/lexik-translation-bundle)[web-auth/webauthn-framework

FIDO2/Webauthn library for PHP and Symfony Bundle.

51390.8k3](/packages/web-auth-webauthn-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[web-auth/webauthn-symfony-bundle

FIDO2/Webauthn Security Bundle For Symfony

65474.5k9](/packages/web-auth-webauthn-symfony-bundle)[instaclick/translation-editor-bundle

Web editor UI to manage Symfony2 translations (Symfony2 bundle)

1819.5k](/packages/instaclick-translation-editor-bundle)[mdm/translator-checker-bundle

Help you to check all your twig strings was translated - and all your translation keys exists

144.5k](/packages/mdm-translator-checker-bundle)

PHPackages © 2026

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