strehle-de/topiccards-lib

TopicCards Neo4j backend

v0.8.0 2022-04-10 19:18 UTC

This package is auto-updated.

Last update: 2024-04-30 00:39:33 UTC


README

TopicCards Neo4j backend (PHP)

Installation

Use Composer to add this library your project’s composer.json file:

$ composer require strehle-de/topiccards-lib

Quick test with Docker

Build the PHP image that meets this library's requirements:

$ docker build docker/php -t strehle-de/topiccards-php

Install dependencies:

$ docker run --rm --interactive --tty \
  --volume $PWD:/app --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \
  --workdir /app strehle-de/topiccards-php composer install

Convert XML to Cypher:

$neo4jClient = (new StrehleDe\TopicCards\Configuration\Configuration('config/config.yaml'))->getNeo4jClient();
$script = new StrehleDe\TopicCards\Import\SimpleImportScript($neo4jClient);
$script->convertFileToCypher($argv[1]);