honestlydesign/etch-builders 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

honestlydesign/etch-builders

Composer 安装命令:

composer require honestlydesign/etch-builders

包简介

Pure-PHP builder API for serializing Etch blocks, styles, and dynamic data. WordPress-free.

README 文档

README

Pure-PHP builder API for serializing Etch blocks, styles, loop presets, and component definitions. WordPress-free.

Install

composer require honestlydesign/etch-builders

Why

Etch stores styling in a flat etch_styles option keyed by opaque style IDs, and block markup references those IDs via attrs.styles[]. This package provides a fluent, type-safe PHP builder that serializes blocks and styles correctly every time, with guardrails that fail at build time rather than mis-rendering at runtime.

Usage

use HonestlyDesign\EtchBuilders\Environment;
use HonestlyDesign\EtchBuilders\Support\NullStorage;
use HonestlyDesign\EtchBuilders\Support\NullMode;
use HonestlyDesign\EtchBuilders\Support\NullAssetRegistry;

// Wire the three seams once (or rely on Null* defaults for tests).
Environment::configure(new NullStorage(), new NullMode(), new NullAssetRegistry());

// Use the builders (full API lands in Phase 2; Phase 1 ships the seam only).

Status

Phase 1 (this release): scaffold + three-interface seam + Environment + pure-PHP Json/Key/Esc helpers + Null* defaults. No block builders yet.

License

MIT

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固