@@ -46,23 +46,19 @@ use Acriss\AcrissCodeParser;
4646$parser = new AcrissCodeParser();
4747$code = $parser->parse('CDMR');
4848
49- // $code is an instance of Acriss\Model\AcrissCode
50-
51- echo $code->category->value; // COMPACT
49+ echo $code->category->value;
5250```
5351
5452### Translate a code
5553
5654``` php
5755use Acriss\AcrissTranslator;
5856
59- $translator = new AcrissTranslator($translatorService); // Symfony's TranslatorInterface
57+ $translator = new AcrissTranslator($translatorService);
6058$labels = $translator->translate($code, 'fr');
6159
62- // $labels is an instance of Acriss\Model\TranslatedAcrissCode
63-
64- echo $labels->category; // "Compacte"
65- echo $labels->fuelAirCon; // "Essence, avec climatisation"
60+ echo $labels->category;
61+ echo $labels->fuelAirCon;
6662```
6763
6864### Get full details
@@ -125,7 +121,7 @@ composer install
125121``` php
126122use Acriss\AcrissTranslator;
127123
128- $translator = new AcrissTranslator($this->translator); // Symfony\Contracts\Translation\TranslatorInterface
124+ $translator = new AcrissTranslator($this->translator);
129125
130126```
131127* Compatible with Symfony translation (TranslatorInterface)
@@ -185,4 +181,10 @@ Want to add more? PRs welcome 👌
185181
186182## 📄 License
187183
188- This library is open-sourced under the MIT license.
184+ This library is open-sourced under the MIT license.
185+
186+ ## Launch phpunit, phpstan, composer without anything
187+
188+ ``` bash
189+ docker run --rm -v " ${PWD} :/app" -w /app php:8.3-cli bash -c " apt update && apt install -y git unzip curl > /dev/null && curl -sS https://getcomposer.org/installer | php && php composer.phar install && php vendor/bin/phpunit"
190+ ```
0 commit comments