mildberry/jms-format
Composer 安装命令:
composer require mildberry/jms-format
包简介
JSON markup structure format
README 文档
README
Custom format for generation block structure on the different front-end system
Require
- php >= 5.4
Install
Install via composer
$ composer require mldberry/jms-format
Usage
Loading JMS format from HTML
<?php $jsmFormat = new Mildberry\JMSFormat\JMSFormat(); print $jmsFormat->convert('html', 'jms', '<h1>Header</h1><p>text</p>');
Output:
{"version":"v1","content":[{"block":"headline","modifiers":{"weight":"lg"},"content":[{"block":"text","modifiers":[],"content":"Header"}]},{"block":"paragraph","modifiers":[],"content":[{"block":"text","modifiers":[],"content":"text"}]}]}
License
This library is under the MIT license. See the complete license in here
统计信息
- 总下载量: 633
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-09-14