Download the PHP package tor2r/laravel-brreg-api without Composer
On this page you can find all versions of the php package tor2r/laravel-brreg-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tor2r/laravel-brreg-api
More information about tor2r/laravel-brreg-api
Files in tor2r/laravel-brreg-api
Package laravel-brreg-api
Short Description Fetch data from Brønnøysundregisteret.
License MIT
Homepage https://github.com/tor2r/laravel-brreg-api
Informations about the package laravel-brreg-api
Laravel Brreg API
A Laravel package for fetching basic data from Brønnøysundregisteret (the Norwegian Register of Business Enterprises). Supports both Enhetsregisteret and Frivillighetsregisteret.
Requirements
- PHP 8.2 or higher
- Laravel 11, 12, or 13
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Usage
Enhetsregisteret (Business Registry)
Frivillighetsregisteret (Voluntary Organisations Registry)
Response Format
Single entity (getByOrgnr) returns a flat array with the entity data:
Search methods (searchByName) return a structured response with data and meta:
Internal API fields (_links, respons_klasse) are automatically stripped from responses.
Error Handling
The package throws Tor2r\BrregApi\Exceptions\BrregApiException when something goes wrong:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-brreg-api with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0||^13.0