a9f/fractor-xliff 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

a9f/fractor-xliff

Composer 安装命令:

composer require --dev a9f/fractor-xliff

包简介

XLIFF extension for the File Read-Analyse-Change Tool. Allows modifying XLIFF translation files

README 文档

README

XLIFF extension for the Fractor file refactoring tool.

Allows validating and transforming XLIFF (XML Localization Interchange File Format) translation files. Supports XLIFF Versions 1.0, 1.1, 1.2 and 2.0.

Installation

composer require a9f/fractor-xliff --dev

Configuration

<?php

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'],
    ]);

Have a look at all available rules Overview of all rules

Processed File Extensions

By default, the following file extensions are processed: xlf, xliff.

For Devlopers

All rules must implement the a9f\FractorXliff\Contract\XliffFractorRule interface. The rule will be tagged with 'fractor.xliff_rule' and be injected in the XliffFileProcessor.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-07-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固