Skip to content

halloverden/symfony-brreg-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symfony Brreg Http Client

Symfony Http Client for the Open Brreg REST Api for the Organization Registry.

Installation

Via composer:

$ composer require halloverden/symfony-brreg-http-client

Usage

In your services.yaml, set

HalloVerden\BrregHttpClient\BrregEntityClientInterface:
    class: HalloVerden\BrregHttpClient\BrregEntityClient

In 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);
  }

}

Contributing

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.

License

MIT

About

Provides a Symfony http client for the brreg (Brønnøysundregistrene) api

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages