{"id":15287400,"url":"https://github.com/wickedone/phrase-tag-bundle","last_synced_at":"2026-01-11T10:54:37.629Z","repository":{"id":65144081,"uuid":"583223867","full_name":"wickedOne/phrase-tag-bundle","owner":"wickedOne","description":"helpers to manage your phrase translation keys","archived":false,"fork":false,"pushed_at":"2025-04-13T02:27:44.000Z","size":1027,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T05:09:46.370Z","etag":null,"topics":["phrase","symfony","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/wickedOne.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2022-12-29T06:09:32.000Z","updated_at":"2025-04-12T06:00:43.000Z","dependencies_parsed_at":"2023-10-05T08:22:58.310Z","dependency_job_id":"7b2ae63c-a0a0-4396-98f3-32709ee4b33c","html_url":"https://github.com/wickedOne/phrase-tag-bundle","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickedOne%2Fphrase-tag-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickedOne%2Fphrase-tag-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickedOne%2Fphrase-tag-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickedOne%2Fphrase-tag-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wickedOne","download_url":"https://codeload.github.com/wickedOne/phrase-tag-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248665747,"owners_count":21142123,"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":["phrase","symfony","symfony-bundle","translations"],"created_at":"2024-09-30T15:28:02.956Z","updated_at":"2026-01-11T10:54:37.622Z","avatar_url":"https://github.com/wickedOne.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phrase-tag-bundle\n\nproviding some commands \u0026 services to help you manage your translation keys at phrase.\nthis might be especially useful when you switched to using the [phrase translation provider](https://github.com/wickedOne/phrase-translation-provider).\n\n[![Mutation testing badge](https://img.shields.io/endpoint?style=flat\u0026url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2FwickedOne%2Fphrase-tag-bundle%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/wickedOne/phrase-tag-bundle/master)\n[![codecov](https://codecov.io/gh/wickedOne/phrase-tag-bundle/branch/master/graph/badge.svg?token=UHKAVGURP7)](https://codecov.io/gh/wickedOne/phrase-tag-bundle)\n[![Latest Stable Version](https://poser.pugx.org/wickedone/phrase-tag-bundle/v)](https://packagist.org/packages/wickedone/phrase-tag-bundle)\n[![Total Downloads](https://poser.pugx.org/wickedone/phrase-tag-bundle/downloads)](https://packagist.org/packages/wickedone/phrase-tag-bundle)\n[![License](https://poser.pugx.org/wickedone/phrase-tag-bundle/license)](https://packagist.org/packages/wickedone/phrase-tag-bundle)\n[![PHP Version Require](https://poser.pugx.org/wickedone/phrase-tag-bundle/require/php)](https://packagist.org/packages/wickedone/phrase-tag-bundle)\n\n## Installation\n\nMake sure Composer is installed globally, as explained in the\n[installation chapter](https://getcomposer.org/doc/00-intro.md)\nof the Composer documentation.\n\n### Applications that use Symfony Flex\n\nOpen a command console, enter your project directory and execute:\n\n```console\ncomposer require wickedone/phrase-tag-bundle\n```\n\n### Applications that don't use Symfony Flex\n\n#### Step 1: Download the Bundle\n\nOpen a command console, enter your project directory and execute the\nfollowing command to download the latest stable version of this bundle:\n\n```console\ncomposer require wickedone/phrase-tag-bundle\n```\n\n#### Step 2: Enable the Bundle\n\nThen, enable the bundle by adding it to the list of registered bundles\nin the `config/bundles.php` file of your project:\n\n```php\n// config/bundles.php\n\nreturn [\n    // ...\n    WickedOne\\PhraseTagBundle\\WickedOnePhraseTagBundle::class =\u003e ['all' =\u003e true],\n];\n```\n\n#### step 3: configuration\n\nin your `config/packages` directory create a `wickedone.yaml` file with the following content:\n\n```yaml\nwicked_one_phrase_tag:\n  dsn: '%env(PHRASE_DSN)%'\n```\n\nand in your `.env` file define the phrase dsn like so\n\n```dotenv\nPHRASE_DSN=phrase://PROJECT_ID:API_TOKEN@default?userAgent=myProject\n```\n\n##### dsn elements\n\n- `PROJECT_ID`: can be retrieved in phrase from `project settings \u003e API \u003e Project ID`\n- `API_TOKEN`: can be created in your [phrase profile settings](https://app.phrase.com/settings/oauth_access_tokens)\n- `default`: endpoint, defaults to `api.phrase.com`\n\n##### dsn query parameters\n\n- `userAgent`: please read [this](https://developers.phrase.com/api/#overview--identification-via-user-agent) for some examples.\n\n## Commands\n\nAfter installation two new commands will be available to your application:\n\n### `phrase:keys:tag` command\n\nthis command helps you to batch tag keys in phrase by querying for existing tags and / or key name.\nyou can search for multiple tags at once and a broad search on key name using the `*` wildcard.\nkeep in mind the query is an AND query, meaning the keys have to match all criteria.\n\n\u003e [!TIP]\n\u003e if you want to match **all** keys, simply omit the query-key (`-k`) and query-tag (`-t`) options\n\n**example**:\n\n```bash\nphp bin/console phrase:keys:tag -k error.* -t ticket-15 -t ticket-13 --tag epic-5\n```\n\nthis will search for all keys matching the name `error.*` and with tags `ticket-15` AND `ticket-13` and will add the tag `epic-5` to them.\n\nwhen you add the `--dry-run` option to the command, it will list the first 100 matches to your query.\n\n### `phrase:keys:untag` command\n\nthis command helps you to batch remove tags from keys in phrase by querying for existing tags and / or key name.\nyou can search for multiple tags at once and a broad search on key name using the `*` wildcard.\nkeep in mind the query is an AND query, meaning the keys have to match all criteria.\n\n\u003e [!TIP]\n\u003e if you want to match **all** keys, simply omit the query-key (`-k`) and query-tag (`-t`) options\n\n**example**:\n\n```bash\nphp bin/console phrase:keys:untag -k error.* -t ticket-15 -t ticket-13 --tag epic-5\n```\n\nthis will search for all keys matching the name `error.*` and with tags `ticket-15` AND `ticket-13` and will remove the tag `epic-5` from them.\n\nwhen you add the `--dry-run` option to the command, it will list the first 100 matches to your query.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwickedone%2Fphrase-tag-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwickedone%2Fphrase-tag-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwickedone%2Fphrase-tag-bundle/lists"}