stoufa06 / php-garmin-connect-api

PHP library to connect and use garmin wellness api
MIT License
8 stars 11 forks source link

Composer issues and depreciation of uri_for #12

Closed Eric-11 closed 2 months ago

Eric-11 commented 2 years ago

I'm new to using composer but I had to add "vlucas/phpdotenv": "^5.4"

To get the dotenv to work.

I also had to modify: /vendor/league/oauth1-client/src/Signature/HmacSha1Signature.php line 37 change to: return Psr7\Utils::uriFor($uri);

to avoid a fatal error of uri_for being refactored in newer packages.

stoufa06 commented 2 years ago

@Eric-11 Thank you for your feedback I will check your issue

konstantinosmantzios commented 2 years ago

I also have the same issue "Call to undefined function GuzzleHttp\Psr7\uri_for()"

I modified lines 35-37 as follows on "/vendor/league/oauth1-client/src/Signature/HmacSha1Signature.php"

protected function createUri(string $uri): UriInterface
    {
        return Psr7\Utils::uriFor($uri);
    }