Download the PHP package rlnks/php-mail-tree-builder without Composer
On this page you can find all versions of the php package rlnks/php-mail-tree-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rlnks/php-mail-tree-builder
More information about rlnks/php-mail-tree-builder
Files in rlnks/php-mail-tree-builder
Package php-mail-tree-builder
Short Description Framework-agnostic PSR-7/PSR-15 API handler for the php-mail-tree visual builder
License MIT
Informations about the package php-mail-tree-builder
rlnks/php-mail-tree-builder
Framework-agnostic PSR-7/PSR-15 API handler for the php-mail-tree visual builder.
Installation
Requires PHP 8.2+ and a PSR-7/PSR-17 implementation (e.g. nyholm/psr7).
Endpoints
| Method | Path | Description |
|---|---|---|
POST |
{prefix}/render/node |
Render a single node → HTML snippet |
POST |
{prefix}/render/document |
Render the full email → complete HTML |
GET |
{prefix}/document |
List saved documents |
POST |
{prefix}/document |
Create a new document |
GET |
{prefix}/document/{id} |
Load a document |
PUT |
{prefix}/document/{id} |
Save / update a document |
DELETE |
{prefix}/document/{id} |
Delete a document |
Quick start
POST /render/node
Render a single node from a JSON tree node + StyleSheet config. The builder calls this whenever a node is added or modified, caching the HTML for canvas assembly.
Response: { "html": "<table>…</table>" }
POST /render/document
Render the full email. Used for the Preview button. Returns the complete <!DOCTYPE html> string.
Response: { "html": "<!DOCTYPE html>…" }
Storage
Implement StorageInterface to persist documents in your preferred backend:
License
MIT
All versions of php-mail-tree-builder with dependencies
rlnks/php-mail-tree Version ^1.0
psr/http-message Version ^2.0
psr/http-server-handler Version ^1.0
psr/http-factory Version ^1.0