Skip to content
LTO Network - Event Chain worker and web service
PHP Other
  1. PHP 99.8%
  2. Other 0.2%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
controllers
declarations
lib
models
services
tests
tmp
.dockerignore
.gitignore
.phplint.yml
.travis.yml
CONTRIBUTING.md
COPYING
Dockerfile
LICENSE
README.md
app.php
build.sh
codeception.yml
composer.json
composer.lock
docker-compose.yml
phpcs.xml
phpstan.neon

README.md

LTO Network - Event Chain Service

See https://legalthings.github.io/livecontracts-specs/01-event-chain/

Requirements

Required PHP extensions are marked by composer

Installation

The LTO full node contains the workflow engine. See how to setup a node.

Alternatively; clone from GitHub for development

git clone git@github.com:legalthings/event-chain.git
cd event-chain
composer install
bin/codecept build

Tests

The code is analysed using PHPStan (static code analyses) and PHP Code Sniffer (coding style).

Before running the test for the first time run bin/codecept build.

Testing is done using the Codeception test framework. The project contains unit and api tests, plus tests for integration with workflow engine.

Do a full analysis and run tests with

composer test

Serve

To serve the project on localhost run

php -S localhost:4000 -t www

Note, it's preferable to work TDD and use tests when developing. This means you would hardly ever need to run this service localy.

You can’t perform that action at this time.