PHP code example of a9f / fractor-xliff
1. Go to this page and download the library: Download a9f/fractor-xliff 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/ */
a9f / fractor-xliff example snippets
use a9f\Fractor\Configuration\FractorConfiguration;
use a9f\FractorXliff\Configuration\XliffProcessorOption;
use a9f\Fractor\ValueObject\Indent;
return FractorConfiguration::configure()
->withPaths([__DIR__ . '/Resources/Private/Language/'])
->withOptions([
XliffProcessorOption::INDENT_CHARACTER => Indent::STYLE_SPACE,
XliffProcessorOption::INDENT_SIZE => 4,
XliffProcessorOption::ALLOWED_FILE_EXTENSIONS => ['xlf', 'xliff'],
]);