matecat / xliff-parser
A Xliff parser written in PHP
Installs: 62 963
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 8
Forks: 11
Open Issues: 3
Requires
- php: >=7.4
- ext-dom: *
- ext-iconv: *
- ext-json: *
- ext-libxml: *
- ext-openssl: *
- ext-simplexml: *
- ext-xml: *
- matecat/emoji-to-entity-converter: ^1
- matecat/xml-dom-parser: ^1
- psr/log: *
Requires (Dev)
- ext-curl: *
- fzaninotto/faker: ^1.9
- phpunit/phpunit: ^5
- dev-master
- v2.2.9
- v2.2.8
- v2.2.7
- v2.2.6
- 2.2.5
- v2.2.4
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.0.115
- v1.0.114
- v1.0.113
- v1.0.112
- v1.0.111
- v1.0.110
- v1.0.109
- v1.0.108
- v1.0.107
- v1.0.106
- v1.0.105
- v1.0.104
- v1.0.103
- v1.0.103-alpha1
- v1.0.102
- v1.0.101
- v1.0.100
- v1.0.99
- v1.0.98
- v1.0.97
- v1.0.96
- v1.0.95
- v1.0.94
- v1.0.93
- v1.0.92
- v1.0.91
- v1.0.90
- v1.0.89
- v1.0.88
- v1.0.87
- v1.0.86
- v1.0.85
- v1.0.84
- v1.0.83
- v1.0.82
- v1.0.81
- v1.0.80
- v1.0.79
- v1.0.78
- v1.0.77
- v1.0.76
- v1.0.75
- v1.0.74
- v1.0.73
- v1.0.72
- v1.0.71
- v1.0.70
- v1.0.69
- v1.0.68
- v1.0.67
- v1.0.66
- v1.0.65
- v1.0.64
- v1.0.63
- v1.0.62
- v1.0.61
- v1.0.60
- v1.0.59
- v1.0.58
- v1.0.57
- v1.0.56
- v1.0.55
- v1.0.54
- v1.0.53
- v1.0.52
- v1.0.51
- v1.0.50
- v1.0.49
- v1.0.48
- v1.0.47
- v1.0.46
- v1.0.45
- v1.0.44
- v1.0.43
- v1.0.42
- v1.0.41
- v1.0.40
- v1.0.39
- v1.0.38
- v1.0.37
- v1.0.36
- v1.0.35
- v1.0.34
- v1.0.33
- v1.0.32
- v1.0.31
- v1.0.30
- v1.0.29
- v1.0.28
- v1.0.27
- 1.0.26.x-dev
- v1.0.26
- v1.0.25
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0
- dev-fix-translation-no-translate
- dev-fix-internal-file
- dev-sdlxliff-entities
- dev-fix-notes-position-20
- dev-fix-lack-of-untranslated-when-not-target-tag
- dev-old-stable
- dev-emoji-v2
- dev-mauretto78-patch-2
- dev-fix-counters
- dev-emoji-fix
- dev-renovate/configure
- dev-v-1-support-for-state
- dev-xliff-states
- dev-add-attr-to-seg-xliff12
- dev-emoji
- dev-parse-segment-state
- dev-inject-errors-in-replacer-callback
- dev-fix-warnings
- dev-fix-emoji
- dev-fix-is-json
- dev-notes-from
- dev-extract-ns-attributes-from-tag-file
- dev-xliff-parser-v1-fix-duplicate-ids
- dev-php74
- dev-tag-pc-self-closed
- dev-pc-self-closing
- dev-fix-lt-gt
- dev-metaGroup-id
- dev-size-restriction-empty
- dev-refactoring-there-are-errors
- dev-fix-ltgt
- dev-map-null
- dev-no-trgLang
- dev-emoji-map
- dev-setCurrentSegmentArray
- dev-fix-tabs
- dev-fix-greaterThan-lessThan
- dev-fix-false-slash
- dev-fix-empty-xliff
- dev-fix-counters-xliff-20
- dev-xliff-20-valid
- dev-fix-typo
- dev-fix-mda-counter
- dev-fix-mda-duplicate
- dev-mauretto78-patch-1
- dev-exception-on-long-segment-id
- dev-char-limit
- dev-fix-sdlxliff-trailing-spaces-with-ut
- dev-refine-xliff-parser-preserve-trailing-spaces
- dev-fix-trailing-space-xliff-12
- dev-fix-nested-ph-in-pc
- dev-html-parser-sanitize-less-than-symbol
- dev-fix-nested-pc
- dev-fix-dupliate-equiv-text
- dev-escape-dataRef
- dev-fix-xliff-12-target-replacement
- dev-ec-sc-tags-xliff-replacer
- dev-ec-sc-to-ph
- dev-handling-xliff-no-target
- dev-nested-pc
- dev-fix-complex-pc
- dev-dataRef-map-blank-values
- dev-html-parser-start-end
- dev-count-meta
- dev-monolog
- dev-parser-dom-refactoring
- dev-v2-dom
This package is auto-updated.
Last update: 2024-11-03 10:29:27 UTC
README
This library is a simple, agnostic Xliff parser specifically written for Matecat.
Installation
composer require matecat/xliff-parser
Xliff Support
Xliff supported versions:
Methods
- xliffToArray - converts a xliff file into an array
- replaceTranslation - replace a translation in a xliff file
Logging
You can inject your own logger (must be a LoggerInterface
implementation):
// ... // $logger must be implement PS3 LoggerInterface $parser = new XliffParser($logger);
Support
If you found an issue or had an idea please refer to this section.
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details