Schema-driven cross-runtime components for Laravel Blade and WordPress Gutenberg

Maintainers

Package info

github.com/adamalexandersson/parity

Type:package

pkg:composer/adamalexandersson/parity

Transparency log

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.5 2026-07-27 12:40 UTC

This package is auto-updated.

Last update: 2026-07-27 12:42:51 UTC


README

Schema-driven cross-runtime components for Laravel Blade and WordPress Gutenberg.

Define a component once in PHP. Parity renders it identically on the front end (Blade) and — on WordPress — in the block editor (window.parity).

Supported environments

Environment Blade / schema Gutenberg editor
Laravel Yes No (use your own bridge if needed)
Sage / Acorn + WordPress Yes Yes (WordPress host auto-detected)

Install

composer require adamalexandersson/parity

Full four-step guide (config publish, Vite plugin, manifest): docs/installation.md.

Documentation

Guide Contents
Installation Laravel and Sage / Acorn setup
Components Authoring with compose()
Schema v1 Full schema reference
Editor Gutenberg, Vite plugin, canvas helpers
Transforms Built-in and custom value casts
Classes Strategies, presets, tokens
Hosts Laravel and WordPress adapters
Testing Fixtures and parity coverage
Upgrading Package vs schema versioning

Commands

wp acorn parity:make Button --ui
wp acorn parity:manifest
wp acorn parity:safelist
wp acorn parity:cache
wp acorn parity:clear
wp acorn parity:doctor

On plain Laravel, use php artisan instead of wp acorn.

Schema version

Parity uses schema version 1.0. The editor runtime warns on a major mismatch and tolerates minor differences. See docs/upgrading.md.

Contributing

See docs/contributing.md. Build the editor bundle with npm run build (output: dist/parity.js).

Escape hatch

Prefer schema attributes (including Alpine helpers) for interactive markup. For exceptional cases only — register a hand-written React component via window.parity.registerComponent('name', MyComponent), or add a theme Blade shell override when the schema cannot express a dynamic loop.

License

MIT