eelcol/laravel-tradetracker
Installation
composer require eelcol/laravel-tradetracker
Setup .env
Change your .env to include the following variables:
TRADETRACKER_ID=...
TRADETRACKER_SECRET=...
Publish assets
php artisan vendor:publish --tag=laravel-tradetracker
Also run the migrations after publishing:
php artisan migrate
Fetch data
Load transactions
use Eelcol\LaravelTradetracker\Support\Facades\Tradetracker;
// last 7 days
Tradetracker::getTransactions(now()->subDays(7), now());
// today only
Tradetracker::getTransactions(now());
Make another GET call
Currently, only the call to load transactions is build-in. To make another GET call:
use Eelcol\LaravelTradetracker\Support\Facades\Tradetracker;
Tradetracker::get('path', ['param1' => 123]);
to do
- use Laravel Soap https://laravel-news.com/laravel-soap
- add tests
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.0.2 | ^7.4| | ^7| | MIT | |
| 0.0.1 | ^7.4| | ^7| | MIT |