Previously I announced the availability of the Node.js package. Today I’m happy to announce the availability of the PHP package!
You can find it on Composer here: https://packagist.org/packages/joshghent/loginllama
At the moment, it only supports plain old PHP. But I’ll be adding support for Laravel and other frameworks soon (let me know which!).
Here’s how to use it.
First download it
composer require joshghent/loginllama
Include the autoload
Then invoke it with the API key. Alternatively if the API key is set in the environment then you can leave this blank.
$loginLlama = new LoginLlama("YOUR_API_TOKEN");
Then check the login!
$result = $loginLlama->check_login([ 'ip_address' => '192.168.1.1', 'user_agent' => 'Mozilla/5.0', 'identity_key' => 'validUser' ]);
And hey presto! You’re done. It's quick and easy to integrate LoginLlama into your PHP application now. And it's free to get started! Sign up for an account here.