PHPackages                             datadome/fraud-sdk-laravel - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. datadome/fraud-sdk-laravel

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

datadome/fraud-sdk-laravel
==========================

DataDome Fraud Protection for Laravel PHP applications

1.0.1(4mo ago)141[7 PRs](https://github.com/DataDome/fraud-sdk-laravel-package/pulls)proprietaryPHPCI passing

Since Feb 14Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/DataDome/fraud-sdk-laravel-package)[ Packagist](https://packagist.org/packages/datadome/fraud-sdk-laravel)[ RSS](/packages/datadome-fraud-sdk-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (12)Used By (0)

DataDome Fraud Protection - PHP Laravel integration
===================================================

[](#datadome-fraud-protection---php-laravel-integration)

Module for supporting DataDome Fraud Protection in Laravel PHP applications.

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

[](#installation)

This package can be installed through composer by running the following command:

```
composer require datadome/fraud-sdk-laravel

```

Then proceed to run the below command to generate an autoloader containing the main class and options:

```
composer dump-autoload

```

When the above processes are completed, add the DataDomeServiceProvider to the list of ServiceProviders found in the `config/app.php`. Then run `php artisan vendor:publish` to publish the DataDomeServiceProvider. This should publish the required `datadome.php` config file to the `config` folder.

Usage
-----

[](#usage)

Update the .env files with your preferred configuration. Please note that the `DATADOME_FRAUD_API_KEY` is mandatory, while the other two settings are optional.

```
DATADOME_FRAUD_API_KEY=my-datadome-fraud-api-key
DATADOME_TIMEOUT=1500
DATADOME_ENDPOINT='https://account-api.datadome.co'

```

To make use of the DataDome SDK in your controller, first add the required imports:

```
use DataDome\FraudSdkSymfony\Models\Address;
use DataDome\FraudSdkSymfony\Models\LoginEvent;
use DataDome\FraudSdkSymfony\Models\StatusType;
use DataDome\FraudSdkSymfony\Models\RegistrationEvent;
use DataDome\FraudSdkSymfony\Models\Session;
use DataDome\FraudSdkSymfony\Models\User;
use DataDome\FraudSdkSymfony\Models\ResponseAction;
```

Then, invoke the validate and collect methods as required:

```
if ($this->validateLogin("account_guid_to_check")) {
    $loginEvent = new LoginEvent("account_guid_to_check", StatusType::Succeeded);
    $loginResponse = app("DataDome")->validate($request, $loginEvent);

    if ($loginResponse != null && $loginResponse->action == ResponseAction::Allow->jsonSerialize()) {
        // Valid login attempt
        return response()->json([true]);
    } else {
        // Business Logic here
        // MFA
        // Challenge
        // Notification email
        // Temporarily lock account
        return response()->json(["Login denied"]);
    }
}
else {
    $loginEvent = new LoginEvent("account_guid_to_check", StatusType::Failed);
    app("DataDome")->collect($request, $loginEvent);
}

return response()->json([false]);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance85

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~740 days

Total

2

Last Release

130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13104090?v=4)[DataDome](/maintainers/datadome)[@DataDome](https://github.com/DataDome)

---

Top Contributors

[![darahak-datadome](https://avatars.githubusercontent.com/u/88320149?v=4)](https://github.com/darahak-datadome "darahak-datadome (2 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (1 commits)")[![datadome-integrations-release[bot]](https://avatars.githubusercontent.com/in/1034200?v=4)](https://github.com/datadome-integrations-release[bot] "datadome-integrations-release[bot] (1 commits)")

---

Tags

fraudlaravelphpsdk

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/datadome-fraud-sdk-laravel/health.svg)

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

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14845.8k1](/packages/guanguans-laravel-exception-notify)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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