Applications:PhpSec
From Yubico
phpSec by Audun Larsen
phpSec is a PHP5 library that provides you as a developer with a set of commonly (and some that should be) used methods, protecting your application against various attacks.
» phpSec homepage
» phpSec GitHub page
Although phpSec is much more than a Yubikey authentication library it does that as well.
phpsecYubikey::$_clientId = 0000; // Your client ID
phpsecYubikey::$_clientSecret = ; // Your client secret.
if(phpsecYubikey::verify($_POST['yubikey'])) {
echo "Valid!";
} else {
echo phpsecYubikey::$lastError;
}
