承接 wwwision/markwhen 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

wwwision/markwhen

最新稳定版本:0.2.0

Composer 安装命令:

composer require wwwision/markwhen

包简介

Projection that can render the state of the Event Sourced Content Repository into markwhen.com syntax

README 文档

README

Projection that can render the state of the Event Sourced Content Repository into markwhen syntax

Warning This package mostly serves as demonstration on how to write a simple Event Sourced Content Repository projection It's probably not very useful in its current form, but feel free to copy and adjust it to your needs!

Usage

Installation

install via composer:

composer require wwwision/markwhen

Note At the time of writing, a couple of required packages are not yet available on packagist You can download those from GitHub to your distribution folder: https://github.com/neos/neos-development-collection/tree/9.0/Neos.ContentRepository.Core https://github.com/neos/neos-development-collection/tree/9.0/Neos.ContentRepositoryRegistry https://github.com/neos/neos-development-collection/tree/9.0/Neos.ContentGraph.DoctrineDbalAdapter https://github.com/neos/neos-development-collection/tree/9.0/Neos.ContentGraph.PostgreSQLAdapter and install everything via composer require wwwision/markwhen neos/contentrepositoryregistry:@dev neos/contentgraph-doctrinedbaladapter:@dev neos/contentgraph-postgresqladapter:@dev

Afterwards you can replay the projection to built up its initial state:

./flow cr:replay markwhen

Once the state is persisted, you can call

./flow markwhen:render

to turn it into markwhen syntax. This will output the result to the console output directly, but you can store it into a file with:

./flow markwhen:render > out.mw

With the help of the Markwhen CLI tool you can turn that into a timeline or calendar:

mw out.mv -d timeline.html 
mw out.mv -d calendar.html

Or pipe the output of the render command to mw directly:

./flow markwhen:render | mw /dev/stdin -d timeline.html

Files in this package

Different Content Repository

This package registers the MarkwhenProjection with the default content repository. To register it to a different instance, you can adjust the settings accordingly:

Neos:
  ContentRepositoryRegistry:
    contentRepositories:
      'acme':
        projections:
          'Wwwision.Markwhen:Markwhen':
            factoryObjectName: Wwwision\Markwhen\MarkwhenProjectionFactory

Or you register it with a Content Repository preset so that it can be used in multiple CRs without additional configuration (see docs.neos.io:

Neos:
  ContentRepositoryRegistry:
    presets:
      'somePreset':
        projections:
          'Wwwision.Markwhen:Markwhen':
            factoryObjectName: Wwwision\Markwhen\MarkwhenProjectionFactory

Don't forget to specify the Content Repository ID for the commands:

./flow cr:replay markwhen --content-repository acme
./flow markwhen:render --content-repository acme

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固