PHPackages                             soc-warden/laravel-sdk - 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. soc-warden/laravel-sdk

ActiveLibrary[Security](/categories/security)

soc-warden/laravel-sdk
======================

SOCWarden security observability SDK for Laravel — detect brute force, impossible travel, credential spray, and more from one API call.

v0.0.1(4w ago)01MITPHPPHP ^8.2

Since May 12Pushed 4w agoCompare

[ Source](https://github.com/SOC-Warden/laravel-sdk)[ Packagist](https://packagist.org/packages/soc-warden/laravel-sdk)[ Docs](https://socwarden.io)[ RSS](/packages/soc-warden-laravel-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

SOCWarden Laravel SDK
=====================

[](#socwarden-laravel-sdk)

Security observability SDK for Laravel applications. Sends security events to the SOCWarden ingestor.

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

[](#installation)

```
composer require soc-warden/laravel-sdk
```

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag=socwarden-config
```

Add to your `.env`:

```
SOCWARDEN_API_KEY=sk_live_your_key_here

```

Usage
-----

[](#usage)

### Track events manually

[](#track-events-manually)

```
use SOCWarden\Facades\SOCWarden;

SOCWarden::track('auth.login.success', [
    'actor_id' => $user->id,
    'actor_email' => $user->email,
]);
```

### Middleware

[](#middleware)

Register the middleware to automatically capture request context:

```
// bootstrap/app.php (Laravel 11+)
->withMiddleware(function (Middleware $middleware) {
    $middleware->append(\SOCWarden\Middleware\CaptureContext::class);
})
```

### Automatic Auth Events

[](#automatic-auth-events)

By default, the SDK listens to Laravel auth events (`Login`, `Failed`, `Logout`, `Registered`, `PasswordReset`) and tracks them automatically. Disable with:

```
SOCWARDEN_LISTEN_AUTH=false

```

Environment Variables
---------------------

[](#environment-variables)

VariableDefaultDescription`SOCWARDEN_API_KEY`—Your SOCWarden API key`SOCWARDEN_ENDPOINT``https://ingestor.socwarden.com`Ingestor endpoint`SOCWARDEN_AUTO_CONTEXT``true`Auto-collect request context`SOCWARDEN_QUEUE``true`Dispatch events via queue`SOCWARDEN_QUEUE_CONNECTION``null`Queue connection name`SOCWARDEN_QUEUE_NAME``default`Queue name`SOCWARDEN_BROWSER_HEADER``X-SOCWarden-Context`Browser context relay header`SOCWARDEN_LISTEN_AUTH``true`Auto-track auth events`SOCWARDEN_TIMEOUT``5`HTTP timeout in seconds

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance94

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

28d ago

Major Versions

v0.0.1-alpha.1 → v1.0.0-alpha.22026-05-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/1285084ec2d00e6c1442d03992cd156772da7267efdcbe59ac913c0676a9eb89?d=identicon)[afiqiqmal](/maintainers/afiqiqmal)

---

Top Contributors

[![afiqiqmal](https://avatars.githubusercontent.com/u/9051312?v=4)](https://github.com/afiqiqmal "afiqiqmal (9 commits)")

---

Tags

laravelsecuritySIEMthreat-detectionobservabilitysocwarden

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/soc-warden-laravel-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/soc-warden-laravel-sdk/health.svg)](https://phpackages.com/packages/soc-warden-laravel-sdk)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

670139.5k6](/packages/spatie-laravel-export)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8956.1k](/packages/dgtlss-warden)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1232.2k16](/packages/fleetbase-core-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
