PHPackages                             joshghent/loginllama - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. joshghent/loginllama

ActiveLibrary[Security](/categories/security)

joshghent/loginllama
====================

A PHP Wrapper for LoginLlama - a suspicious login detection API

1.2.0(4mo ago)06[1 PRs](https://github.com/joshghent/loginllama.php/pulls)GPL-3.0-onlyPHPPHP &gt;=8.3.0CI passing

Since Sep 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/joshghent/loginllama.php)[ Packagist](https://packagist.org/packages/joshghent/loginllama)[ RSS](/packages/joshghent-loginllama/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

LoginLlama PHP Client
=====================

[](#loginllama-php-client)

Official PHP SDK for [LoginLlama](https://loginllama.app) - AI-powered login security and fraud detection.

Features
--------

[](#features)

- **Automatic Context Detection**: Auto-detects IP address and User-Agent from Laravel, Symfony, WordPress, and vanilla PHP
- **Multi-Source IP Extraction**: Supports X-Forwarded-For, CF-Connecting-IP, X-Real-IP, True-Client-IP with private IP filtering
- **Framework Support**: Works with Laravel, Symfony, WordPress, and vanilla PHP
- **Middleware Integration**: Drop-in middleware for Laravel and Symfony
- **Webhook Verification**: Built-in HMAC signature verification

Installation
------------

[](#installation)

```
composer require joshghent/loginllama:^2.0
```

Requires PHP 8.3 or higher.

Quick Start
-----------

[](#quick-start)

### Vanilla PHP

[](#vanilla-php)

The simplest way to use LoginLlama in vanilla PHP - IP and User-Agent are automatically detected from `$_SERVER`:

```
