Download the PHP package mcoredev/tailor-blocks without Composer
On this page you can find all versions of the php package mcoredev/tailor-blocks. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mcoredev/tailor-blocks
More information about mcoredev/tailor-blocks
Files in mcoredev/tailor-blocks
Package tailor-blocks
Short Description Framework-agnostic PHP block content engine with YAML definitions and admin builder UI.
License MIT
Informations about the package tailor-blocks
Tailor Blocks
Tailor Blocks is a framework-agnostic PHP content engine for structured block content. Blocks are defined in YAML, edited through the bundled browser editor, validated and normalized by PHP, stored as JSON by your CMS, and compiled into frontend-ready JSON.
Tailor Blocks is not a CMS. Your application owns routing, persistence, authentication, authorization, uploads, search persistence, and frontend rendering.
Requirements
- PHP 8.2+
- Composer
ext-intl
Installation
Drop-in CMS Integration
For an existing CMS, use the endpoint-first drop-in flow:
- Publish assets from
vendor/mcoredev/tailor-blocks/dist/. - Add a
GETendpoint that returnsEditorMountConfigJSON. - Add a
POSTendpoint that sendseditor.sync()JSON throughTailorBlocksEngine::process(...). - Store normalized
content_jsonand derivedcompiled_json.
Start with the Drop-in CMS Integration guide and the copy-paste controller skeleton.
Assets
After Composer installation, copy or publish the built assets from
vendor/mcoredev/tailor-blocks/dist/ into a public admin asset directory:
Production integrations should normally load the published all-in-one bundle:
For debugging or split loading, the package also ships:
tailor-blocks-core.min.jstailor-blocks-widgets.min.jstailor-blocks-editor.min.jstailor-blocks.js
The unminified split files are included for development and debugging.
Minimal PHP Usage
Minimal Browser Usage
License
MIT