Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Fractor Xliff Laravel Package

a9f/fractor-xliff

View on GitHub
Deep Wiki
Context7

Fractor XLIFF

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk