1. Go to this page and download the library: Download lacatoire/acriss-code library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lacatoire / acriss-code example snippets
use Acriss\AcrissCodeParser;
$parser = new AcrissCodeParser();
$code = $parser->parse('CDMR');
echo $code->category->value;
use Acriss\AcrissTranslator;
$translator = new AcrissTranslator($symfonyTranslator);
$labels = $translator->translate($code, 'fr');
echo $labels->category;
echo $labels->fuelAirCon;
use Acriss\AcrissCodeDetails;
$details = (new AcrissCodeDetails($parser, $translator))->get('CDMR', 'it');
echo $details->translated->transmission; // "Manuale"
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\YamlFileLoader;
use Acriss\AcrissTranslator;
$translator = new Translator('fr');
$translator->addLoader('yaml', new YamlFileLoader());
$translator->addResource('yaml', __DIR__.'/translations/messages.fr.yaml', 'fr');
$acriss = new AcrissTranslator($translator);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.