PHPackages                             dag-io/xml-cropper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dag-io/xml-cropper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dag-io/xml-cropper
==================

Crop a part of an XML file

1.0.0(10y ago)1966MITPHPPHP &gt;=5.4

Since Dec 19Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

xml-cropper
===========

[](#xml-cropper)

Crop a part of an XML

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/8e5830453ec0aee9a85d67ec63ebc06accc2e25e5ec8e173c38eb7cca95e32ac/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461672d696f2f786d6c2d63726f707065722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dag-io/xml-cropper/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/4eb1f53795eceeeaa9bcdff85fda44620c32e2227c678309775a12753fd153f1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461672d696f2f786d6c2d63726f707065722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dag-io/xml-cropper/?branch=master)[![Build Status](https://camo.githubusercontent.com/3925c0187a13161be76add9dae0a1ef579296e9a4b93dd8251fc433020fc4776/68747470733a2f2f7472617669732d63692e6f72672f6461672d696f2f786d6c2d63726f707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dag-io/xml-cropper)[![SensioLabsInsight](https://camo.githubusercontent.com/589d1fd5a6f0b7b3e5c2da1081fe52981c605c47ed4a16c92299170edfc68350/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f37613638663537652d353734652d343833342d393532662d6132646261373235363632322f6d696e692e706e67)](https://insight.sensiolabs.com/projects/7a68f57e-574e-4834-952f-a2dba7256622)[![Latest Stable Version](https://camo.githubusercontent.com/4b9aa26d74ce9822654fd92f43f97fac2f086ea1c89349adc03786020110801e/68747470733a2f2f706f7365722e707567782e6f72672f6461672d696f2f786d6c2d63726f707065722f762f737461626c652e737667)](https://packagist.org/packages/dag-io/xml-cropper)[![Latest Unstable Version](https://camo.githubusercontent.com/b115990c46400beffa80c43ce121e41ad2762fccad54ba8908e6d8d1fa9a0d0a/68747470733a2f2f706f7365722e707567782e6f72672f6461672d696f2f786d6c2d63726f707065722f762f756e737461626c652e737667)](https://packagist.org/packages/dag-io/xml-cropper)[![License](https://camo.githubusercontent.com/93e3e547d3896d8190ee7b86fef0cb3358ee5339d9c63458f6dd28117bacd6ae/68747470733a2f2f706f7365722e707567782e6f72672f6461672d696f2f786d6c2d63726f707065722f6c6963656e73652e737667)](https://packagist.org/packages/dag-io/xml-cropper)

Usage
=====

[](#usage)

```
xml-cropper crop src/DAG/Xml/Cropper/Tests/sample.xml "//book[@id='bk102']"

```

An online version is available on :

Tests
=====

[](#tests)

```
bin/phpunit -c phpunit.xml.dist src/

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3803d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/746830036cb24100773fc66282c28c41f3ed8b27de80b46d1ba944984c1f8d8a?d=identicon)[dag-io](/maintainers/dag-io)

---

Top Contributors

[![dagio](https://avatars.githubusercontent.com/u/74581?v=4)](https://github.com/dagio "dagio (21 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dag-io-xml-cropper/health.svg)

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

###  Alternatives

[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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