PHP code example of cloudplaydev / camunda-rest-client
1. Go to this page and download the library: Download cloudplaydev/camunda-rest-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
cloudplaydev / camunda-rest-client example snippets
# an example to use camunda rest api to complete task
use Camunda\Entity\Request\TaskRequest;
use Camunda\Service\TaskService;
$host = 'http://localhost:8080/engine-rest';
$taskRequest = new TaskRequest();
$taskService = new TaskService($host);
$taskId = '8cd376cc-bf7f-11e7-a6e2-005056c00008';
echo $taskService->complete($taskId, $taskRequest);