2017 © Pedro Peláez
 

library fraudshield-php

A PHP wrapper for Fraudshield's API

image

fraudshield/fraudshield-php

A PHP wrapper for Fraudshield's API

  • Tuesday, October 24, 2017
  • by djug
  • Repository
  • 1 Watchers
  • 1 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Fraudshield PHP SDK

Welcome to Fraudshield PHP SDK. This repository contains Fraudshield's PHP SDK and samples for REST API., (*1)

SDK Documentation

Our API Documentation page includes all the documentation related to this PHP SDK, (*2)

Installation

composer require "fraudshield/fraudshield-php", (*3)

Usage

Conversion Report

<?php
require_once __DIR__ . '/vendor/autoload.php';

use Fraudshield\Fraudshield;
use Fraudshield\Reports\ConversionReport;

$fs = new Fraudshield(USER_ID, API_TOKEN);

// create a conversion report
$report = new ConversionReport(186,'2017-06-05', '2017-06-05'); 

// dump the report content
var_dump($fs->getReport($report));

Fraud Report

<?php
require_once __DIR__ . '/vendor/autoload.php';

use Fraudshield\Fraudshield;
use Fraudshield\Reports\FraudReport;

$fs = new Fraudshield(USER_ID, API_TOKEN);

// create a conversion report
$report = new FraudReport(186,'2017-06-05', '2017-06-05');

// add data sources
$report
    ->addDataSource('sub_id')
    ->addDataSource('partner')
    ->addDataSource('affiliate')
    ->addDataSource('product')
    ->addDataSource('goal');

// add filter
$report
    ->addFilter('min_conversions', 1)
    ->addFilter('min_rejection_rate', 1)
    ->addFilter('max_rejection_rate', 50)
    ->addFilter('min_goals_reached', 50)
    ->addFilter('max_goals_reached', 50);

// dump the report content
var_dump($fs->getReport($report));

License

MIT, (*4)

The Versions

24/10 2017

dev-master

9999999-dev

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield

24/10 2017

1.4

1.4.0.0

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield

19/09 2017

1.3

1.3.0.0

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield

03/08 2017

1.2

1.2.0.0

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield

28/07 2017

1.1

1.1.0.0

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield

30/06 2017

1.0

1.0.0.0

A PHP wrapper for Fraudshield's API

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Fraudshield Dev Team

detection fraud fraudshield