Please enable JavaScript to view this site.

The manual for the JobRouter developer

PHP offers the cURL extension for the sending and editing of HTTP requests. It is included in the PHP package in the JobRouter Environment Setup . Information on the use, functions and options can be found on the website of the extension.

There are some PHP libraries that facilitate writing REST clients, such as the guzzlehttp library. The library provides a PHP HTTP client with methods for sending requests and processing responses. Information on the use, functions and options of each version can be found on the library's website. The version currently used in JobRouter can be found under the menu item Configuration > Monitoring and Maintenance > System Information > Third-Party Licenses.

The example demonstrates the use of both libraries. An advantage of guzzlehttp is the abstraction of the requests. This facilitates the creation and re-use of scripts. A disadvantage is, that scripts may need to be adjusted when the library is updated.