databox / databox-php

PHP bindings for Databox
http://databox.com
MIT License
5 stars 9 forks source link

Support for guzzle v7 #14

Open AndriiHrynchuk opened 3 years ago

AndriiHrynchuk commented 3 years ago

Hi, I'm going to use your package with latest Laravel v8. Your package is missing support of "guzzlehttp/guzzle": "^7.0.1". Are you going to upgrade your package to add support of guzzle v7?

livingos commented 3 years ago

Or you could just use Laravel's own HTTP client:

$data = [
            '$sales' => $salesTotal,
];
 $response = Http::withHeaders(
            [
                'Accept' => 'application/vnd.databox.v2+json',
                'Content-Type' => 'application/json'
            ]
        )->withBasicAuth(config('services.databox.token'), '')
            ->post(
                'https://push.databox.com',
                [
                    'data' => [$data],
                ]
            );
ThomasRitter75 commented 2 years ago

As a general update: On Laravel 9, installing databox/databox fails because of the outdated guzzle version. Is this project dead?

MLDMoritz commented 1 year ago

@VladaPetrovic