定制 lv/aurorajson 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

lv/aurorajson

Composer 安装命令:

composer require lv/aurorajson

包简介

Library to handle an AWS-Subscription from a woodwing publication, download and transform data from JSON to PHP Array.

README 文档

README

Library to handle an AWS subscription from a Woodwing Aurora publication, download and transform data from JSON to a customizable PHP array.

Woodwing Aurora is a Multi-Channel-Publishing plattform to aim the goal "write once, publish anywhere". Aurora publishes its content in different formats like HTML, PSV and JSON. This library concentrate on custom transformation of the proprietary Aurora JSON format to an PHP array.

You find additional Information about the JSON-Format: https://helpcenter.woodwing.com/hc/en-us/articles/360000130186-The-JSON-Digital-article-format-specification

Requirements

  • PHP >= 7.2.5

Installation

composer require lv/aurorajson:dev-master

Configure a Publication Channel in Woodwing Aurora.

Setup a website to get publication data from Woodwing Aurora. You find in public/index.php the stuff to handle AWSSubscription and trigger the JSON transformation process. You find rules for the transformation process in config/config.json. See the usage section.

Usage

In public/index.php is the part to handle AWSSubscription and trigger the PHP Array Transformation:

/* Download Manager is responsible to get article data from AWS-Cloud */
$aDownload = new DownloadManager($configData);
$aDownload->handleAwsSnsMessage();
if ($aDownload->isDownloadSuccess()) {
    $artDao = new ArticleManager($configData);
    $articleData = $artDao->parseJsonData($aDownload->getArticleJsonData());
}

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2019-02-15