PHPackages                             leoloso/wp-block-data - 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. [API Development](/categories/api)
4. /
5. leoloso/wp-block-data

AbandonedArchivedWordpress-plugin[API Development](/categories/api)

leoloso/wp-block-data
=====================

WordPress plugin to extract all data from all blocks inside a of post (created with the Gutenberg content editor)

v0.4(6y ago)1501MITPHP

Since Aug 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/leoloso/wp-block-data)[ Packagist](https://packagist.org/packages/leoloso/wp-block-data)[ Docs](https://github.com/leoloso/wp-block-data)[ RSS](/packages/leoloso-wp-block-data/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (1)

WordPress Block Data
====================

[](#wordpress-block-data)

WordPress plugin to extract all data from all blocks inside of a post (created with Gutenberg)

Install
-------

[](#install)

Install the plugin via Composer

```
$ composer require leoloso/wp-block-data
```

And then activate the plugin "WordPress Block Data"

Usage
-----

[](#usage)

Obtain the Gutenberg data for all blocks in a post with ID `$post_id` like this:

```
$post = get_post($post_id);
$block_data = get_block_data($post->post_content);
```

The data can also be retrieved through the following REST endpoint:

```
/wp-json/wp/v2/post-block-data/{POST_ID}
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Leonardo Losoviz](https://github.com/leoloso)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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

Every ~4 days

Total

4

Last Release

2454d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1981996?v=4)[Leonardo Losoviz](/maintainers/leoloso)[@leoloso](https://github.com/leoloso)

---

Top Contributors

[![leoloso](https://avatars.githubusercontent.com/u/1981996?v=4)](https://github.com/leoloso "leoloso (12 commits)")

---

Tags

apiblockgutenberggutenblockwordpressapiwordpressblockgutenbergGutenblock

### Embed Badge

![Health badge](/badges/leoloso-wp-block-data/health.svg)

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

###  Alternatives

[wp-graphql/wp-graphql-woocommerce

WooCommerce bindings for WPGraphQL

69146.8k](/packages/wp-graphql-wp-graphql-woocommerce)[wordpress/wp-ai-client

An AI client and API for WordPress to communicate with any generative AI models of various capabilities using a uniform API.

11117.5k1](/packages/wordpress-wp-ai-client)[nekojira/wp-api-menus

Extends WordPress WP API with menu routes.

1401.5k](/packages/nekojira-wp-api-menus)[rickwest/laravel-wordpress-api

A Laravel read-only client for the WordPress REST API (v2)

3712.5k1](/packages/rickwest-laravel-wordpress-api)[oomphinc/wp-forms-api

Drupal-esque API for creating and munging forms in WordPress

581.1k](/packages/oomphinc-wp-forms-api)

PHPackages © 2026

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