Problem this snippet solves:
Using PHP 7 (and newer) with the GuzzleHttp library to connect to the REST interface.
How to use this snippet:
Install the GuzzleHttp library if you need to and include the autoloader. This is a regular step or process for any modern PHP application.
Tested this on version: