PHPackages                             sabre/xml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. sabre/xml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

sabre/xml
=========

sabre/xml is an XML library that you may not hate.

4.0.6(1y ago)52832.2M—1.8%77[17 issues](https://github.com/sabre-io/xml/issues)20BSD-3-ClausePHPPHP ^7.4 || ^8.0CI passing

Since Feb 7Pushed 3w ago37 watchersCompare

[ Source](https://github.com/sabre-io/xml)[ Packagist](https://packagist.org/packages/sabre/xml)[ Docs](https://sabre.io/xml/)[ RSS](/packages/sabre-xml/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (69)Used By (20)

sabre/xml
=========

[](#sabrexml)

[![Build Status](https://github.com/sabre-io/xml/actions/workflows/ci.yml/badge.svg)](https://github.com/sabre-io/xml/actions/workflows/ci.yml/badge.svg)

The sabre/xml library is a specialized XML reader and writer.

Documentation
-------------

[](#documentation)

- [Introduction](http://sabre.io/xml/).
- [Installation](http://sabre.io/xml/install/).
- [Reading XML](http://sabre.io/xml/reading/).
- [Writing XML](http://sabre.io/xml/writing/).

Major version 3 implements type declarations for input parameters, function returns, variables etc. It supports PHP 7.4 and PHP 8. When you upgrade to major version 3, if you extend classes etc., then you will need to make similar type declarations in your code.

Support
-------

[](#support)

Head over to the [SabreDAV mailing list](http://groups.google.com/group/sabredav-discuss) for any questions.

Made at fruux
-------------

[](#made-at-fruux)

This library is being developed by [fruux](https://fruux.com/). Drop us a line for commercial services or enterprise support.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance68

Regular maintenance activity

Popularity71

Solid adoption and visibility

Community51

Growing community involvement

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 50.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~124 days

Total

64

Last Release

125d ago

Major Versions

2.2.7 → 3.0.42024-04-18

3.0.4 → 4.0.52024-04-18

2.2.10 → 3.0.52024-09-05

2.2.11 → 3.0.62024-09-06

3.0.6 → 4.0.62024-09-06

PHP version history (7 changes)0.0.1PHP &gt;=5.3.1

0.0.2PHP &gt;=5.4.1

1.5.0PHP &gt;=5.5.5

2.0.0PHP &gt;=7.0

2.2.0PHP ^7.1

2.2.2PHP ^7.1 || ^8.0

3.0.0PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ec28c32d012f276f61b0b58cabe3c8f674166732d9b20eeddc3f9807857ba10?d=identicon)[evert](/maintainers/evert)

![](https://www.gravatar.com/avatar/d916220fea2bfe2d822214b0f188d1087035c66245431ae0dc2df4fbfbf81f6c?d=identicon)[dominik](/maintainers/dominik)

---

Top Contributors

[![evert](https://avatars.githubusercontent.com/u/178960?v=4)](https://github.com/evert "evert (281 commits)")[![phil-davis](https://avatars.githubusercontent.com/u/1535615?v=4)](https://github.com/phil-davis "phil-davis (148 commits)")[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (37 commits)")[![DeepDiver1975](https://avatars.githubusercontent.com/u/1005065?v=4)](https://github.com/DeepDiver1975 "DeepDiver1975 (29 commits)")[![Hywan](https://avatars.githubusercontent.com/u/946104?v=4)](https://github.com/Hywan "Hywan (8 commits)")[![DominikTo](https://avatars.githubusercontent.com/u/1384635?v=4)](https://github.com/DominikTo "DominikTo (7 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![jakobsack](https://avatars.githubusercontent.com/u/776911?v=4)](https://github.com/jakobsack "jakobsack (4 commits)")[![VinceG](https://avatars.githubusercontent.com/u/195199?v=4)](https://github.com/VinceG "VinceG (4 commits)")[![vsouz4](https://avatars.githubusercontent.com/u/16051418?v=4)](https://github.com/vsouz4 "vsouz4 (3 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (2 commits)")[![LukasReschke](https://avatars.githubusercontent.com/u/878997?v=4)](https://github.com/LukasReschke "LukasReschke (2 commits)")[![clxmstaab](https://avatars.githubusercontent.com/u/47448731?v=4)](https://github.com/clxmstaab "clxmstaab (2 commits)")[![mrbig](https://avatars.githubusercontent.com/u/102836?v=4)](https://github.com/mrbig "mrbig (2 commits)")[![winmillwill](https://avatars.githubusercontent.com/u/873461?v=4)](https://github.com/winmillwill "winmillwill (1 commits)")[![cedric-anne](https://avatars.githubusercontent.com/u/33253653?v=4)](https://github.com/cedric-anne "cedric-anne (1 commits)")[![DavidPrevot](https://avatars.githubusercontent.com/u/3936728?v=4)](https://github.com/DavidPrevot "DavidPrevot (1 commits)")[![fezfez](https://avatars.githubusercontent.com/u/1162307?v=4)](https://github.com/fezfez "fezfez (1 commits)")[![gerritdrost](https://avatars.githubusercontent.com/u/5630275?v=4)](https://github.com/gerritdrost "gerritdrost (1 commits)")

---

Tags

xmldomXMLReaderXMLWriter

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sabre-xml/health.svg)

```
[![Health](https://phpackages.com/badges/sabre-xml/health.svg)](https://phpackages.com/packages/sabre-xml)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[fluentdom/fluentdom

A fluent api for the php dom extension.

337306.9k17](/packages/fluentdom-fluentdom)[veewee/xml

XML without worries

1835.9M29](/packages/veewee-xml)[dkrnl/simplexmlreader

Wrapper XMLReader class, for simple SAX-reading(and simple XPath-queries) of huge(testing over 1G file) xml.

112951.5k](/packages/dkrnl-simplexmlreader)[scotteh/php-dom-wrapper

Simple DOM wrapper to select nodes using either CSS or XPath expressions and manipulate results quickly and easily.

1471.9M10](/packages/scotteh-php-dom-wrapper)[rct567/dom-query

DomQuery is a PHP library that allows easy 'jQuery like' DOM traversing and manipulation

134261.0k4](/packages/rct567-dom-query)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
