https://github.com/linkorb/bonita-client-php
Bonita BPM client library for PHP
https://github.com/linkorb/bonita-client-php
Last synced: 2 months ago
JSON representation
Bonita BPM client library for PHP
- Host: GitHub
- URL: https://github.com/linkorb/bonita-client-php
- Owner: linkorb
- License: mit
- Created: 2017-05-22T06:07:43.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T06:30:52.000Z (about 9 years ago)
- Last Synced: 2025-07-30T00:51:43.890Z (11 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Bonita BPM client for PHP
==========================
This library implements a simple client library for [Bonita BPM](http://bonitasoft.com).
Bonita exposes a [well documented REST API](http://documentation.bonitasoft.com/?page=_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](http://documentation.bonitasoft.com/?page=csrf-security),
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.