Symfony Http Client for the Open Brreg REST Api for the Organization Registry.
Via composer:
$ composer require halloverden/symfony-brreg-http-clientIn your services.yaml, set
HalloVerden\BrregHttpClient\BrregEntityClientInterface:
class: HalloVerden\BrregHttpClient\BrregEntityClientIn your class, inject the BrregEntityClientInterface interface:
readonly final class TestService {
public function __construct(private BrregEntityClientInterface $client) {
}
public function test(string $organizationNumber): BrregEntity {
return $this->client->fetchEntityByOrganizationNumber($organizationNumber);
}
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.