{"id":14983953,"url":"https://github.com/php-translation/symfony-bundle","last_synced_at":"2026-01-27T18:24:00.369Z","repository":{"id":13961298,"uuid":"75462210","full_name":"php-translation/symfony-bundle","owner":"php-translation","description":"Symfony integration for Translations","archived":false,"fork":false,"pushed_at":"2025-04-22T21:28:49.000Z","size":884,"stargazers_count":327,"open_issues_count":52,"forks_count":93,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-04-22T22:34:23.231Z","etag":null,"topics":["symfony-bundle","translations"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-translation.png","metadata":{"files":{"readme":"Readme.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-12-03T08:35:25.000Z","updated_at":"2025-04-22T21:28:53.000Z","dependencies_parsed_at":"2024-04-11T11:46:09.867Z","dependency_job_id":"4ec17bb9-364c-4b6c-b59f-23cd0bcc5ef6","html_url":"https://github.com/php-translation/symfony-bundle","commit_stats":{"total_commits":357,"total_committers":59,"mean_commits":"6.0508474576271185","dds":0.5154061624649859,"last_synced_commit":"0b3eaaa00794b29ef187bd5fa60b8d58a6d03330"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Fsymfony-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Fsymfony-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Fsymfony-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-translation%2Fsymfony-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-translation","download_url":"https://codeload.github.com/php-translation/symfony-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254092776,"owners_count":22013290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["symfony-bundle","translations"],"created_at":"2024-09-24T14:08:13.963Z","updated_at":"2026-01-27T18:24:00.363Z","avatar_url":"https://github.com/php-translation.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Translation Bundle\n\n[![Latest Version](https://img.shields.io/github/release/php-translation/symfony-bundle.svg?style=flat-square)](https://github.com/php-translation/symfony-bundle/releases)\n[![Total Downloads](https://img.shields.io/packagist/dt/php-translation/symfony-bundle.svg?style=flat-square)](https://packagist.org/packages/php-translation/symfony-bundle)\n[![CI](https://github.com/php-translation/symfony-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/php-translation/symfony-bundle/actions/workflows/ci.yml)\n[![Static code analysis](https://github.com/php-translation/symfony-bundle/actions/workflows/static.yml/badge.svg)](https://github.com/php-translation/symfony-bundle/actions/workflows/static.yml)\n\n**Symfony integration for PHP Translation**\n\n## Install\n\nInstall this bundle via Composer:\n\n```bash\ncomposer require php-translation/symfony-bundle\n```\n\nIf you're using [Symfony Flex][symfony_flex] - you're done! Symfony Flex will create default\nconfiguration for you, change it if needed. If you don't use Symfony Flex, you will need to do\na few more simple steps.\n\n1. First, register the bundle:\n\n```php\n# config/bundles.php\nreturn [\n    // ...\n    Translation\\Bundle\\TranslationBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n2. Then, configure the bundle. An example configuration looks like this:\n\n```yaml\n# config/packages/php_translation.yaml\ntranslation:\n    locales: [\"en\"]\n    edit_in_place:\n        enabled: false\n        config_name: app\n    configs:\n        app:\n            dirs: [\"%kernel.project_dir%/templates\", \"%kernel.project_dir%/src\"]\n            output_dir: \"%kernel.project_dir%/translations\"\n            excluded_names: [\"*TestCase.php\", \"*Test.php\"]\n            excluded_dirs: [cache, data, logs]\n```\n\n```yaml\n# config/packages/dev/php_translation.yaml\ntranslation:\n    symfony_profiler:\n        enabled: true\n    webui:\n        enabled: true\n```\n\n3. And the last step, add new routes:\n\n```yaml\n# config/routes/dev/php_translation.yaml\n_translation_webui:\n    resource: '@TranslationBundle/Resources/config/routing_webui.yaml'\n    prefix: /admin\n\n_translation_profiler:\n    resource: '@TranslationBundle/Resources/config/routing_symfony_profiler.yaml'\n```\n\n```yaml\n# config/routes/php_translation.yaml\n_translation_edit_in_place:\n    resource: '@TranslationBundle/Resources/config/routing_edit_in_place.yaml'\n    prefix: /admin\n```\n\n## Documentation\n\nRead the full documentation at [https://php-translation.readthedocs.io](https://php-translation.readthedocs.io/en/latest/).\n\n\n[symfony_flex]: https://github.com/symfony/flex\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-translation%2Fsymfony-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-translation%2Fsymfony-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-translation%2Fsymfony-bundle/lists"}