Download the PHP package wwwision/markwhen without Composer
On this page you can find all versions of the php package wwwision/markwhen. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wwwision/markwhen
More information about wwwision/markwhen
Files in wwwision/markwhen
Package markwhen
Short Description Projection that can render the state of the Event Sourced Content Repository into markwhen.com syntax
License MIT
Informations about the package markwhen
Wwwision.Markwhen
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:
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:
Once the state is persisted, you can call
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:
With the help of the Markwhen CLI tool you can turn that into a timeline or calendar:
Or pipe the output of the render command to mw
directly:
Files in this package
- MarkwhenCommandController.php: Flow CLI controller that provides the
markwhen:*
commands - MarkwhenProjection.php: The actual Content Repository projection
- MarkwhenProjectionFactory.php: Simple factory for the projection that is configured with the Content Repository Registry
- MarkwhenProjectionState.php: PHP class that holds the state of the projection and can be turned into (and restored from) JSON
- Settings.yaml: Configuration for this package, registering the projection with the "default" Content Repository
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:
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:
Don't forget to specify the Content Repository ID for the commands:
All versions of markwhen with dependencies
neos/contentrepository-core Version *
neos/contentrepositoryregistry Version *