Download the PHP package wickedone/phrase-tag-bundle without Composer
On this page you can find all versions of the php package wickedone/phrase-tag-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wickedone/phrase-tag-bundle
More information about wickedone/phrase-tag-bundle
Files in wickedone/phrase-tag-bundle
Package phrase-tag-bundle
Short Description helpers to deal with your phrase translations
License MIT
Informations about the package phrase-tag-bundle
phrase-tag-bundle
providing some commands & services to help you manage your translation keys at phrase. this might be especially usefull when you switched to using the phrase translation provider.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
step 3: configuration
in your config/packages
directory create a wickedone.yaml
file with the following content:
and in your .env
file define the phrase dsn like so
dsn elements
PROJECT_ID
: can be retrieved in phrase fromproject settings > API > Project ID
API_TOKEN
: can be created in your phrase profile settingsdefault
: endpoint, defaults toapi.phrase.com
dsn query parameters
userAgent
: please read this for some examples.
Commands
After installation two new commands will be available to your application:
phrase:keys:tag
command
this command helps you to batch tag keys in phrase by querying for existing tags and / or key name.
you can search for multiple tags at once and a broad search on key name using the *
wildcard.
keep in mind the query is an AND query, meaning the keys have to match all criteria.
example:
this 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.
when you add the --dry-run
option to the command, it will list the first 100 matches to your query.
phrase:keys:untag
command
this command helps you to batch remove tags from keys in phrase by querying for existing tags and / or key name.
you can search for multiple tags at once and a broad search on key name using the *
wildcard.
keep in mind the query is an AND query, meaning the keys have to match all criteria.
example:
this 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.
when you add the --dry-run
option to the command, it will list the first 100 matches to your query.
All versions of phrase-tag-bundle with dependencies
symfony/config Version ^6.4 || ^7.0
symfony/console Version ^6.4 || ^7.0
symfony/framework-bundle Version ^6.4 || ^7.0
symfony/http-client Version ^6.4 || ^7.0
symfony/monolog-bundle Version ^3.10.0
symfony/translation Version ^6.4 || ^7.0