PHPackages                             magium/zf2-xpath-validator - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. magium/zf2-xpath-validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

magium/zf2-xpath-validator
==========================

A simple validator to make sure that the provided text is valid Xpath

1(8y ago)1421Apache-2.0PHP

Since Jan 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/magium/zf2-xpath-validator)[ Packagist](https://packagist.org/packages/magium/zf2-xpath-validator)[ RSS](/packages/magium-zf2-xpath-validator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

ZF2 Xpath validator
===================

[](#zf2-xpath-validator)

This is a simple ZF2 componente that will validate that an Xpath expression is valid, not that it will return certain data. Checkout the [test cases](blob/master/tests/TestXpathValidation.php) to see how to use it.

Or, look here:

```
$validator = new \Magium\Validate\Xpath\XpathValidator();
$validator->isValid('//div'); // returns true

```

or

```
$validator = new \Magium\Validate\Xpath\XpathValidator();
$validator->isValid('invalid xpath'); // returns false

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3074d ago

### Community

Maintainers

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

---

Top Contributors

[![kschroeder](https://avatars.githubusercontent.com/u/237332?v=4)](https://github.com/kschroeder "kschroeder (8 commits)")

### Embed Badge

![Health badge](/badges/magium-zf2-xpath-validator/health.svg)

```
[![Health](https://phpackages.com/badges/magium-zf2-xpath-validator/health.svg)](https://phpackages.com/packages/magium-zf2-xpath-validator)
```

###  Alternatives

[stroker/form

ZF2 module for extending forms with live clientside validation

3957.1k](/packages/stroker-form)

PHPackages © 2026

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