PHPackages                             humanmade/rehydrator - 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. humanmade/rehydrator

ActiveWordpress-plugin

humanmade/rehydrator
====================

Pattern-based content transformation for WordPress block migrations

v1.1.3(3w ago)321[1 issues](https://github.com/humanmade/rehydrator/issues)[1 PRs](https://github.com/humanmade/rehydrator/pulls)GPL-2.0-or-laterPHPPHP &gt;=8.2CI passing

Since Mar 18Pushed 3w agoCompare

[ Source](https://github.com/humanmade/rehydrator)[ Packagist](https://packagist.org/packages/humanmade/rehydrator)[ RSS](/packages/humanmade-rehydrator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (6)Versions (8)Used By (0)

Rehydrator
==========

[](#rehydrator)

Pattern-based content transformation for WordPress block migrations. Provides utilities for loading block patterns, resolving nested pattern references, and applying targeted transformations to populate templates with content.

**[Full documentation →](https://humanmade.github.io/rehydrator/)**

Installation
------------

[](#installation)

**Via Composer:**

```
composer require humanmade/rehydrator
```

**As a WordPress plugin:** Clone or download this repository to `wp-content/plugins/` and activate.

Requirements
------------

[](#requirements)

- PHP 8.0+
- WordPress 6.0+

Quick Start
-----------

[](#quick-start)

```
use HM\Rehydrator\Template;

$transformer = new Template( 'theme/template-article' );

$content = $transformer
    ->replace_text( 'theme/hero', 'core/heading', occurrence: 0, text: $title )
    ->replace_text( 'theme/hero', 'core/paragraph', occurrence: 0, text: $standfirst )
    ->replace_attributes( 'theme/hero', 'core/image', occurrence: 0, attrs: [
        'id'  => $image_id,
        'url' => $image_url,
    ] )
    ->replace_placeholder( 'content-placeholder', $body_blocks )
    ->get_content();

wp_update_post( [
    'ID'           => $post_id,
    'post_content' => $content,
] );
```

For full API documentation including all transformation methods and helper namespaces, see the **[docs site](https://humanmade.github.io/rehydrator/)**.

Development
-----------

[](#development)

### Running Tests

[](#running-tests)

```
composer install
composer test
```

### Code Style

[](#code-style)

```
composer lint
```

License
-------

[](#license)

GPL-2.0-or-later

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance88

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.8% 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 ~34 days

Total

5

Last Release

26d ago

PHP version history (2 changes)v1.0.0PHP &gt;=8.0

v1.1.1PHP &gt;=8.2

### Community

Maintainers

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

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

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

![](https://avatars.githubusercontent.com/u/1190079?v=4)[Jenny Wong](/maintainers/missjwo)[@missjwo](https://github.com/missjwo)

---

Top Contributors

[![goldenapples](https://avatars.githubusercontent.com/u/665992?v=4)](https://github.com/goldenapples "goldenapples (46 commits)")[![kadamwhite](https://avatars.githubusercontent.com/u/442115?v=4)](https://github.com/kadamwhite "kadamwhite (25 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/humanmade-rehydrator/health.svg)

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

PHPackages © 2026

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