New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

eelcol/laravel-tradedoubler

Laravel wrapper for the TradeDoubler API
2,413
Install
composer require eelcol/laravel-tradedoubler
Latest Version:1.1.0
PHP:^7.4|^8.0
Laravel:7 – 12
License:MIT
Last Updated:Oct 21, 2026
Links: GitHub  ·  Packagist
Maintainer: eelcol

Installation

composer require eelcol/laravel-tradedoubler

Setup .env

Change your .env to include the following variables:

TRADEDOUBLER_CLIENT_ID=...
TRADEDOUBLER_CLIENT_SECRET=...
TRADEDOUBLER_USERNAME=...
TRADEDOUBLER_PASSWORD=... 

Read the following docs to get a clientId and clientSecret:

https://tradedoubler.docs.apiary.io/#/reference/o-auth-2-0/bearer-and-refresh-token

Publish assets

php artisan vendor:publish --tag=laravel-tradedoubler
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"

Also run the migrations after publishing:

php artisan migrate

Fetch data

Load transactions
use Eelcol\LaravelTradedoubler\Support\Facades\Tradedoubler;

// last 7 days
Tradedoubler::getTransactions(now()->subDays(7), now());

// today only
Tradedoubler::getTransactions(now());
Make another GET call

Currently, only the call to load transactions is build-in. To make another GET call:

use Eelcol\LaravelTradedoubler\Support\Facades\Tradedoubler;

Tradedoubler::get('path', ['param1' => 123]);

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
1.1.0 ^7.4|^8.0 ^7|^8|^9|^10|^11|^12 MIT
1.0.6 ^7.4|^8.0 ^7|^8 MIT
1.0.5 ^7.4|^8.0 ^7|^8 MIT
1.0.4 ^7.4|^8.0 ^7|^8 MIT
1.0.3 ^7.4|^8.0 ^7|^8 MIT