These libraries help with connecting to a Yubico U2F Validation Server from a number of different programming languages.
u2fval-client-php
u2fval-client-python