strehle-de/camunda-client

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP client for the Camunda BPMN workflow engine https://camunda.com/products/bpmn-engine/

v0.6.1 2024-05-06 12:31 UTC

README

This is an inofficial PHP client for the Camunda BPMN workflow engine using its REST API.

Status right now: Developers only, not suitable for production use

If you’re a developer looking for a Camunda client making use of PHP 7.4’s strong typing, you might be interested, and you’re welcome to contribute.

Do not use this code in production yet – currently it’s an experimental, rudimentary implementation.

Make sure to also check out the nice endpot / camunda-rest-client and the official but dated Camunda BPM PHP SDK (or its forks, for example kmhamdi00 / camunda-bpm-php-sdk).

Installation

Use Composer to add this library your project’s composer.json file:

$ composer require strehle-de/camunda-client

Quick test

Here’s how to do a quick test, starting from scratch with a new project (Docker and Camunda server required):

Install dependencies using Composer

$ docker run --rm --interactive --tty \
  --volume $PWD:/app \
  --volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \
  composer/composer require strehle-de/camunda-client:dev-master monolog/monolog

Copy and edit the example script

$ cp vendor/strehle-de/camunda-client/UsageExample.php MyExample.php

Edit your copy.

Then run your copy

$ docker run -it --rm \
  --volume "$PWD":/usr/src/myapp --workdir /usr/src/myapp \
  php:8.3-cli php MyExample.php

Authors

License

This library is licensed under the MIT License - see the LICENSE file for details.