mggflow / vkflow
v2.0.0
2023-03-06 15:38 UTC
Requires
- mggflow/exception-manager: ^2.0
- mggflow/time-meter: ^1.0
- mggflow/vk-automatic: ^1.1
Requires (Dev)
- phpunit/phpunit: ^9.5
README
About
This package is core of backend logic of VKFLOW service.
Usage
To install:
composer require mggflow/vkflow
Example of performing Task:
// Implements Interfaces/TaskQueue.
$taskQueue = new TaskQueue();
// Implements Interfaces/TaskFabric.
$taskFabric = new TaskFabric();
// Implements Interfaces/TaskResultHandlerFabric.
$taskResultHandlerFabric = new TaskResultHandlerFabric();
// Implements Interfaces/ProfileData.
$profileData = new ProfileData();
$worker = new Worker($profileData, $taskQueue, $taskFabric, $taskResultHandlerFabric);
$worker->perform();