51Degrees Pipeline API - Real-time data micro-services aggregator.
Installs: 20 326
Open Issues: 1
- mustache/mustache: ^2.13
- tedivm/jshrink: ~1.0
- kint-php/kint: ^3.3
This package is auto-updated.
Last update: 2023-05-25 16:28:30 UTC
[Developer Documentation](https://51degrees.com/documentation/index.html?utm_source=github&utm_medium=repository&utm_content=documentation&utm_campaign=php-open-source"developer documentation")
This project contains the core source code for the PHP implementation of the 51Degrees Pipeline API.
The Pipeline is a generic micro-services aggregation solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)
The tested versions page shows the PHP versions that we currently test against. The software may run fine against other versions, but additional caution should be applied.
To run the examples, you first need to install dependencies. Navigate to the repository root and execute:
This will create the vendor directory containing autoload.php. Now navigate to the examples directory and start a PHP server with the relevant file. For example:
PHP -S localhost:3000 CustomFlowElement.php
This will start a local web server listening on port 3000. Open your web browser and browse to http://localhost:3000/ to see the example in action.
There are several examples available that demonstrate how to make use of the Pipeline API in isolation. These are described in the table below. If you want examples that demonstrate how to use 51Degrees products such as device detection, then these are available in the corresponding repository and on our website.
|Pipeline||Demonstrates adding some sample flow elements to a pipeline and processing some data with them.|
|CustomFlowElement||Demonstrates how to write your own flow element, which can then be added to a pipeline to perform processing.|
To run the tests in this repository, make sure PHPUnit is installed then, in the root of this repo, call:
phpunit --log-junit test-results.xml