linkorb / bonita-client-php
Bonita client library for PHP
Installs: 115
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 1
Open Issues: 0
pkg:composer/linkorb/bonita-client-php
Requires
- php: >=5.3.0
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- symfony/dotenv: v3.3.0-RC1
This package is auto-updated.
Last update: 2025-09-29 02:20:55 UTC
README
This library implements a simple client library for Bonita BPM.
Bonita exposes a well documented REST API
Authentication
Bonita requires REST clients to use an authenticated session.
So this implementation will call /loginservice on instantiation.
The request contains a username + password, and the response contains
a cookie, which will be used in following requests by the client.
The cookie alone will allow you to make GET requests only.
In an effort to prevent CSRF attacks, you'll need to pass a custom HTTP header that can be extracted from a cookie.
This client takes care of the session initialization and CSRF-protection headers.
Usage / Example
Please refer to example/example.php for a usage example.
Copy the .env.dist file to .env and edit it to setup your configuration.