PHPackages                             2lenet/crudit-translation-provider - 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. 2lenet/crudit-translation-provider

ActiveSymfony-bundle

2lenet/crudit-translation-provider
==================================

Symfony Translation Provider backed by crudit-studio (crudit:// DSN).

1.0.0(1mo ago)01291MITPHPPHP ^8.2CI passing

Since Jul 17Pushed 1mo agoCompare

[ Source](https://github.com/2lenet/CruditTranslationProvider)[ Packagist](https://packagist.org/packages/2lenet/crudit-translation-provider)[ RSS](/packages/2lenet-crudit-translation-provider/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (10)Versions (2)Used By (1)

CruditTranslationProvider
=========================

[](#crudittranslationprovider)

 [ ![PHPStan status](https://github.com/2lenet/CruditTranslationProvider/actions/workflows/phpstan.yml/badge.svg?branch=main) ](https://github.com/2lenet/CruditTranslationProvider/actions) [ ![PHPUnit status](https://github.com/2lenet/CruditTranslationProvider/actions/workflows/phpunit.yml/badge.svg?branch=main) ](https://github.com/2lenet/CruditTranslationProvider/actions) [ ![PHPCS status](https://github.com/2lenet/CruditTranslationProvider/actions/workflows/validate.yml/badge.svg?branch=main) ](https://github.com/2lenet/CruditTranslationProvider/actions)

Symfony **Translation Provider** backed by crudit-studio: your project's translations are centrally managed in crudit-studio, and synchronized with the standard `translation:pull` / `translation:push` commands — exactly like the official Loco, Crowdin or Lokalise providers, through a `crudit://` DSN.

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

[](#installation)

```
composer require 2lenet/crudit-translation-provider
```

If your app doesn't use Symfony Flex, register the bundle in `config/bundles.php`:

```
Lle\CruditTranslationProvider\LleCruditTranslationProviderBundle::class => ['all' => true],
```

Configuration
-------------

[](#configuration)

Declare the provider in `config/packages/translation.yaml`:

```
framework:
    translator:
        providers:
            crudit:
                dsn: '%env(CRUDIT_TRANSLATION_DSN)%'
                domains: []   # empty = all domains
                locales: []   # empty = your app's enabled_locales
```

And set the DSN in your `.env.local`:

```
CRUDIT_TRANSLATION_DSN=crudit://PROJECT_CODE:TOKEN@crudit-studio.example.com
```

- `PROJECT_CODE` — your project's `code` in crudit-studio,
- `TOKEN` — the project's API token,
- host (and optional port) of your crudit-studio instance, reached over HTTPS.

For a local crudit-studio over plain HTTP, add `?scheme=http`:

```
CRUDIT_TRANSLATION_DSN=crudit://PROJECT_CODE:TOKEN@localhost:8328?scheme=http
```

Usage
-----

[](#usage)

```
# Send local translations to crudit-studio.
# crudit-studio NEVER overwrites a key it already knows (it may have been edited
# by a translator through its UI), so pushing is always safe.
bin/console translation:push crudit

# Fetch translations from crudit-studio into your local files
bin/console translation:pull crudit --force
```

### Initial migration

[](#initial-migration)

There is no dedicated init command: the very first `translation:push crudit` against an empty crudit-studio project uploads your whole local catalogue (every key, locale and domain) and becomes the starting point managed in crudit-studio.

### Translation file formats

[](#translation-file-formats)

The provider itself never reads or writes files — it exchanges message catalogues with the standard Symfony commands, which handle the local files:

- `translation:push` loads your local files through Symfony's registered loaders, so **every format supported by the Translation component works out of the box**: YAML, XLIFF, JSON, PHP, CSV, INI, gettext (`.po`/`.mo`), Qt XML (`.ts`), ResourceBundle...
- `translation:pull` writes local files in the format you ask for with `--format`(XLIFF 1.2 by default):

```
bin/console translation:pull crudit --force --format=yaml
```

### Not supported

[](#not-supported)

`translation:push --delete-missing` (the provider `delete()` operation) is not supported yet: for now, crudit-studio is the authority and keys are removed through its UI. We are looking into supporting this option in the near future.

Development
-----------

[](#development)

```
composer install
vendor/bin/phpunit
vendor/bin/phpcs
vendor/bin/phpstan analyse
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

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

46d ago

### Community

Maintainers

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

---

Top Contributors

[![valentin-helies](https://avatars.githubusercontent.com/u/89925635?v=4)](https://github.com/valentin-helies "valentin-helies (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/2lenet-crudit-translation-provider/health.svg)

```
[![Health](https://phpackages.com/badges/2lenet-crudit-translation-provider/health.svg)](https://phpackages.com/packages/2lenet-crudit-translation-provider)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.7M445](/packages/easycorp-easyadmin-bundle)[kimai/kimai

Kimai - Time Tracking

5.0k9.7k1](/packages/kimai-kimai)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

605.9M717](/packages/shopware-core)[sulu/sulu

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

1.4k1.4M244](/packages/sulu-sulu)[sylius/sylius

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

8.5k6.1M796](/packages/sylius-sylius)

PHPackages © 2026

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