1. Go to this page and download the library: Download laravelgpt/data-breach library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
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);
use LaravelGPT\DataBreach\Livewire\PasswordChecker;
// In your Blade view
<livewire:data-breach::password-checker />
// New analytics components
<livewire:data-breach::cursor-analytics />
<livewire:data-breach::session-replay />
// 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);
};
bash
php artisan data-breach:install
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.