Download the PHP package t3ran13/golos-php-event-listener without Composer
On this page you can find all versions of the php package t3ran13/golos-php-event-listener. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download t3ran13/golos-php-event-listener
More information about t3ran13/golos-php-event-listener
Files in t3ran13/golos-php-event-listener
Package golos-php-event-listener
Short Description PHP event listener for STEEM/GOLOS blockchain
License MIT
Homepage https://github.com/t3ran13/golos-php-event-listener
Informations about the package golos-php-event-listener
golos-php-event-listener
PHP event listener for STEEM/GOLOS blockchains
Install Via Composer
Basic Usage
For working you app you need
- database manager
- events handlers
- start script for cron
Example below
Add this script to cron.
Database manager
Lib use ready for using RedisManager from t3ran13/php-process-manager composer package, with next DB structure:
How to create onw DB manager, see t3ran13/php-process-manager
Events handlers
Each Handler have to implements EventHandlerInterface and ProcessManager\process\ProcessInterface, you can create onw or extends from EventHandlerAbstract. When any event are found BlockchainExplorer make checking with isTrxSatisfiesConditions function and save to handling list if is it satisfied. When EventHandlerProcess starts it handle all events from queue.
Example
Example of the app base on golos-php-event-listener you can see here https://github.com/t3ran13/golos-rating-auto-reward
All versions of golos-php-event-listener with dependencies
t3ran13/php-graphene-node-client Version ^5.0.0
predis/predis Version 1.1.1
t3ran13/php-process-manager Version ^0.1.2