There's a PHP Package for the Flow Framework available that you can either use in your own Flow projects or check out code samples.
The git Repository is available here: Passcreator.Api.Client
The PHP Class were the actual API calls are made is this one: PasscreatorService
In case you're using Composer you can add the package to your project by running the following command:
composer require passcreator/api-client