PHPackages                             n5s/wp-block-visitor - 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. n5s/wp-block-visitor

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

n5s/wp-block-visitor
====================

A powerful WordPress library to extract data from blocks or tranform blocks effortlessly.

21.0kPHPCI passing

Since Sep 16Pushed 7mo agoCompare

[ Source](https://github.com/nlemoine/wp-block-visitor)[ Packagist](https://packagist.org/packages/n5s/wp-block-visitor)[ RSS](/packages/n5s-wp-block-visitor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wp-block-visitor
================

[](#wp-block-visitor)

The `wp-block-visitor` library allows you to traverse and manipulate WordPress block structures using the visitor pattern. This approach provides a clean and extensible way to extract data or modify blocks, making it easier to implement custom logic for your WordPress projects.

Warning

🚧 This library is still in early stage. Feedback welcome. API might change.

Install
-------

[](#install)

```
composer require n5s/wp-block-visitor
```

Usage
-----

[](#usage)

To be documented. Check the [examples](https://github.com/nlemoine/wp-block-visitor/tree/main/examples) folder in the meantime.

You can also run them using WP-CLI:

```
wp visitor tree --require=examples/cli.php
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance44

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/62f16c9d375343e12eb02b2a3095dc9a02047287b5f12f75ef4c59929fcb2802?d=identicon)[n5s](/maintainers/n5s)

---

Top Contributors

[![nlemoine](https://avatars.githubusercontent.com/u/2526939?v=4)](https://github.com/nlemoine "nlemoine (5 commits)")

### Embed Badge

![Health badge](/badges/n5s-wp-block-visitor/health.svg)

```
[![Health](https://phpackages.com/badges/n5s-wp-block-visitor/health.svg)](https://phpackages.com/packages/n5s-wp-block-visitor)
```

###  Alternatives

[benjaminhirsch/nova-slug-field

A Laravel Nova field to generate a slugs.

1401.1M11](/packages/benjaminhirsch-nova-slug-field)[naif/toggle

A Laravel Nova toggle switch field for Nova 3

2671.5k](/packages/naif-toggle)

PHPackages © 2026

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