1 min read
Announcing LoginLlama for PHP
LoginLlama is now available for PHP. Add suspicious login detection to your PHP application and check every login for risk.
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
require_once 'vendor/autoload.php';
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' => '203.0.113.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.
Continue reading
Sign in to LoginLlama with Google
Sign in with Google or GitHub, connect both to one account, and keep two-factor authentication on whichever way you come in.
Login Risk Scoring for Auth.js (NextAuth)
Score every Auth.js Credentials sign-in for risk and refuse the dangerous ones before a session exists. Wrap authorize in one line.
Suspicious Login Detection for Clerk
Score every Clerk sign-in for risk from a session.created webhook, and revoke the risky sessions within seconds. One package, three environment variables.
Score your first login today
100 free checks. No card. Then from $9 a month.