strehle-de / topiccards-lib
TopicCards Neo4j backend
v0.8.0
2022-04-10 19:18 UTC
Requires
- php: >=7.4 <8.2
- ext-bcmath: *
- ext-curl: *
- ext-dom: *
- ext-json: *
- ext-xmlreader: *
- elasticsearch/elasticsearch: ~7.0
- laudis/neo4j-php-client: ^2.3
- monolog/monolog: ^2.3
- ramsey/uuid: ^4.2
- symfony/config: >=5.4
- symfony/yaml: >=5.4
- twig/twig: ^3.0
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]);