Hi, I am Developer that is integrating growthbook ...
# ask-questions
l
Hi, I am Developer that is integrating growthbook on our websites. Can someone help me regarding this issue? ) "No PSR-18 clients found. Make sure to install a package providing "psr/http-client-implementation". Example: "php-http/guzzle7-adapter"." We are using zend framework, and I have added growthbook pdp sdk 1.7.0 in composer
f
can you explain a bit more about where you're seeing that error
?
composer require php-http/guzzle7-adapter
l
Hello, Its returning an error after initialize. I will try to install guzzle7 adapter
I am having this issue Uncaught TypeError: Argument 1 passed to Growthbook\\Growthbook::withSavedGroups() must be of the type array, null given this is how i initialized
Copy code
$growthbook = Growthbook::create()
            ->withAttributes([
                // Targeting attributes
                'id' => '1234',
                'someCustomAttribute' => true
            ]);
        $growthbook->initialize(
            "sdk-key", // Client Key
            "<https://cdn.growthbook.io>" // API Host
        ); 

 $value = $this->growthbook->getValue("background_color", "fallback");

Im using php 7.2
I just followed this documentation https://docs.growthbook.io/lib/php
f
I'll have to check with the PHP sdk team
@freezing-postman-69602 can you help?
f
the initialization looks correct. I suspect your feature json could be malformed.
@loud-librarian-23712 do you mind sharing your features json or checking if the savedGroups inside it is set to an array?