PHPackages                             laravelgpt/data-breach - 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. [Templating &amp; Views](/categories/templating)
4. /
5. laravelgpt/data-breach

ActiveLibrary[Templating &amp; Views](/categories/templating)

laravelgpt/data-breach
======================

A comprehensive cybersecurity toolkit for Laravel 12 with multiple frontend integrations and advanced analytics capabilities

2.0.0(10mo ago)00MITPHPPHP ^8.2

Since Jun 21Pushed 10mo agoCompare

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

READMEChangelogDependencies (19)Versions (3)Used By (0)

LaravelGPT Data Breach Monitor
==============================

[](#laravelgpt-data-breach-monitor)

A comprehensive cybersecurity toolkit for Laravel 12 with multiple frontend integrations (Livewire 3, Volt, Vue.js, React, Blade) and advanced analytics capabilities.

🚀 Features
----------

[](#-features)

### 🔐 Core Security Features

[](#-core-security-features)

- **Password Breach Check**: Integration with HIBP, DeHashed, LeakCheck APIs
- **Password Strength Analyzer**: Real-time password strength assessment
- **Malware Pattern Checker**: Advanced malware detection patterns
- **Secure Passkey Generator**: Generate cryptographically secure passkeys

### 🧠 Advanced Security Features

[](#-advanced-security-features)

- **VirusTotal Integration**: Full file and URL scanning capabilities
- **Suspicious IP Checker**: Integration with AbuseIPDB, IPQS, VirusTotal
- **Geo-IP Alert System**: Location-based security alerts
- **Dark Web Monitor**: Monitor credentials on dark web platforms
- **Real-time Alert Dispatcher**: Email, Telegram, and log notifications
- **2FA Setup Recommendations**: Authenticator and YubiKey support

### 🎯 New Analytics &amp; UX Features (v2.0)

[](#-new-analytics--ux-features-v20)

- **Cursor Analytics**: Real-time cursor movement tracking and analysis
- **Session Replay**: Complete user session recording and playback
- **AI UX Feedback**: Automated analysis of user interaction patterns
- **Bug Report Enrichment**: Enhanced bug reports with cursor/session data
- **Multi-device Sync**: Cursor events synchronized across devices
- **Screen Recording**: Optional screenshot capture during sessions
- **Performance Analytics**: Velocity tracking and interaction speed analysis

### 🎨 Frontend Integration Options

[](#-frontend-integration-options)

- **Livewire 3** (Default): Real-time reactive components with modern syntax
- **Volt**: Laravel 12's new component system
- **Vue.js**: Modern reactive framework integration
- **React**: Component-based UI with Inertia.js
- **Blade**: Pure PHP/HTML views

📦 Installation
--------------

[](#-installation)

```
composer require laravelgpt/data-breach
```

### Interactive Installation

[](#interactive-installation)

The package includes an interactive installer that lets you choose your preferred frontend:

```
php artisan data-breach:install
```

You'll be prompted to choose your frontend stack:

```
Choose your frontend stack:
[1] Livewire 3 (Default)
[2] Volt
[3] Vue.js
[4] React
[5] Blade Only

```

⚙️ Configuration
----------------

[](#️-configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag="data-breach-config"
```

Configure your API keys in `config/data-breach.php`:

```
return [
    'apis' => [
        'hibp' => env('HIBP_API_KEY'),
        'dehashed' => env('DEHASHED_API_KEY'),
        'virustotal' => env('VIRUSTOTAL_API_KEY'),
        'abuseipdb' => env('ABUSEIPDB_API_KEY'),
        'ipqs' => env('IPQS_API_KEY'),
    ],
    'frontend' => env('DATA_BREACH_FRONTEND', 'livewire'),
    'cursor' => [
        'tracking_enabled' => env('DATA_BREACH_CURSOR_TRACKING', true),
        'session_logging' => env('DATA_BREACH_CURSOR_SESSION_LOGGING', true),
        'analytics_enabled' => env('DATA_BREACH_CURSOR_ANALYTICS', true),
        'ai_ux_feedback' => env('DATA_BREACH_CURSOR_AI_UX_FEEDBACK', true),
        'bug_report_enrichment' => env('DATA_BREACH_CURSOR_BUG_REPORT', true),
        'archive_policy_days' => env('DATA_BREACH_CURSOR_ARCHIVE_DAYS', 30),
    ],
    'alerts' => [
        'email' => env('DATA_BREACH_EMAIL_ALERTS', true),
        'telegram' => env('DATA_BREACH_TELEGRAM_ALERTS', false),
        'telegram_bot_token' => env('TELEGRAM_BOT_TOKEN'),
        'telegram_chat_id' => env('TELEGRAM_CHAT_ID'),
    ],
];
```

🎯 Usage
-------

[](#-usage)

### Basic Password Check

[](#basic-password-check)

```
use LaravelGPT\DataBreach\Services\PasswordBreachService;

$breachService = app(PasswordBreachService::class);
$result = $breachService->checkPassword('password123');
```

### IP Reputation Check

[](#ip-reputation-check)

```
use LaravelGPT\DataBreach\Services\IpReputationService;

$ipService = app(IpReputationService::class);
$result = $ipService->checkIp('8.8.8.8');
```

### Cursor Analytics

[](#cursor-analytics)

```
use LaravelGPT\DataBreach\Services\CursorAnalyticsService;

$analyticsService = app(CursorAnalyticsService::class);

// Track cursor event
$analyticsService->trackCursorEvent($request, [
    'x' => 100,
    'y' => 200,
    'event_type' => 'click',
    'element_id' => 'submit-button',
    'velocity' => 150
]);

// Get session analytics
$analytics = $analyticsService->getSessionAnalytics($sessionKey);
```

### Session Replay

[](#session-replay)

```
use LaravelGPT\DataBreach\Services\SessionReplayService;

$replayService = app(SessionReplayService::class);

// Start recording
$sessionKey = $replayService->startRecording($request);

// Record events
$replayService->recordEvent($sessionKey, [
    'type' => 'click',
    'data' => ['x' => 100, 'y' => 200]
]);

// Stop and get data
$sessionData = $replayService->stopRecording($sessionKey);
```

🎨 Frontend Components
---------------------

[](#-frontend-components)

### Livewire 3 Component

[](#livewire-3-component)

```
use LaravelGPT\DataBreach\Livewire\PasswordChecker;

// In your Blade view

// New analytics components

```

### Volt Component

[](#volt-component)

```
// In your Volt component
use function Livewire\Volt\{state, mount};

state(['password' => '', 'result' => null]);

mount(function () {
    // Component initialization
});

$checkPassword = function () {
    $service = app(PasswordBreachService::class);
    $this->result = $service->checkPassword($this->password);
};
```

### Vue.js Component

[](#vuejs-component)

```

import PasswordChecker from '@/components/PasswordChecker.vue'
import CursorAnalytics from '@/components/CursorAnalytics.vue'
import SessionReplay from '@/components/SessionReplay.vue'

export default {
    components: {
        PasswordChecker,
        CursorAnalytics,
        SessionReplay
    }
}

```

### React Component

[](#react-component)

```
import PasswordChecker from '@/components/PasswordChecker'
import CursorAnalytics from '@/components/CursorAnalytics'
import SessionReplay from '@/components/SessionReplay'

function App() {
    return (

    )
}
```

🔧 API Endpoints
---------------

[](#-api-endpoints)

The package provides comprehensive RESTful API endpoints:

### Security Endpoints

[](#security-endpoints)

- `POST /api/data-breach/password/check` - Check password breach
- `POST /api/data-breach/ip/check` - Check IP reputation
- `POST /api/data-breach/file/scan` - Scan file for malware
- `GET /api/data-breach/dark-web/search` - Search dark web
- `POST /api/data-breach/generate/passkey` - Generate secure passkey

### Analytics Endpoints

[](#analytics-endpoints)

- `POST /api/data-breach/cursor/track` - Track cursor event
- `GET /api/data-breach/cursor/analytics/{sessionKey}` - Get cursor analytics
- `GET /api/data-breach/cursor/events/{sessionKey}` - Get cursor events
- `POST /api/data-breach/cursor/archive` - Archive old cursor data

### Session Replay Endpoints

[](#session-replay-endpoints)

- `POST /api/data-breach/session/start` - Start session recording
- `POST /api/data-breach/session/record` - Record session event
- `POST /api/data-breach/session/stop` - Stop session recording
- `GET /api/data-breach/session/replay/{sessionKey}` - Get session replay data
- `GET /api/data-breach/session/analytics/{sessionKey}` - Get session analytics

### Bug Report Endpoints

[](#bug-report-endpoints)

- `POST /api/data-breach/bug-report/enrich` - Enrich bug report with cursor data

🔍 Cursor Analytics Features
---------------------------

[](#-cursor-analytics-features)

### Real-time Tracking

[](#real-time-tracking)

- Mouse movement tracking with velocity calculation
- Click and hover event capture
- Element interaction analysis
- Device type detection (desktop/mobile/tablet)

### Analytics Dashboard

[](#analytics-dashboard)

- Total moves, clicks, and interactions
- Fast vs slow movement analysis
- Most hovered elements
- Session duration and event breakdown

### AI UX Feedback

[](#ai-ux-feedback)

- Automated interaction pattern analysis
- Performance bottleneck detection
- User experience optimization suggestions
- Heat map generation capabilities

📊 Session Replay Features
-------------------------

[](#-session-replay-features)

### Complete Session Recording

[](#complete-session-recording)

- Page load events with metadata
- Click, scroll, and form interaction tracking
- Error capture and reporting
- Screenshot capture (optional)

### Session Analytics

[](#session-analytics)

- Session duration and event count
- Device and browser information
- Interaction breakdown by type
- Performance metrics

### Multi-device Support

[](#multi-device-support)

- Cross-device session synchronization
- User and tenant-based session organization
- Automatic cleanup and archiving

🛡️ Security &amp; Privacy
-------------------------

[](#️-security--privacy)

### Data Protection

[](#data-protection)

- All cursor and session data is encrypted at rest
- Automatic data archiving and cleanup
- GDPR-compliant data handling
- Configurable retention policies

### Rate Limiting

[](#rate-limiting)

- Comprehensive rate limiting on all endpoints
- Configurable limits per endpoint type
- Abuse prevention and monitoring

### Authentication

[](#authentication)

- Laravel Sanctum integration for API protection
- Role-based access control
- Multi-tenant support
- Session-based security

🧪 Testing
---------

[](#-testing)

```
composer test
```

📄 License
---------

[](#-license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

🤝 Contributing
--------------

[](#-contributing)

Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

📞 Support
---------

[](#-support)

- Documentation:
- Issues:
- Email:

🔄 Changelog
-----------

[](#-changelog)

### v2.0.0 - Major Update

[](#v200---major-update)

- ✨ Added cursor analytics and tracking
- ✨ Added session replay functionality
- ✨ Added AI UX feedback system
- ✨ Added bug report enrichment
- ✨ Upgraded to Laravel 12 support
- ✨ Added Volt component support
- ✨ Enhanced Livewire 3 integration
- 🔧 Improved performance and security
- 🐛 Fixed various bugs and issues

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance53

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

2

Last Release

322d ago

Major Versions

1.0.0 → 2.0.02025-06-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad107e973e4942f97e875f216484319e0d23e1a354ceae083f627715759c7096?d=identicon)[laravelgpt](/maintainers/laravelgpt)

---

Top Contributors

[![laravelgpt](https://avatars.githubusercontent.com/u/21008964?v=4)](https://github.com/laravelgpt "laravelgpt (2 commits)")

---

Tags

laravelbladelivewirevoltreactvueSession Replaydata breachcybersecuritypassword-checkermalware-detectiondark-web-monitorcursor-analytics

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/laravelgpt-data-breach/health.svg)

```
[![Health](https://phpackages.com/badges/laravelgpt-data-breach/health.svg)](https://phpackages.com/packages/laravelgpt-data-breach)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[mati365/ckeditor5-livewire

CKEditor 5 integration for Laravel Livewire

413.9k](/packages/mati365-ckeditor5-livewire)

PHPackages © 2026

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