This package provide access to the Kvk API using one simple class.
Require this package with composer.
composer require alexwijn/kvk
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.
If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php
Alexwijn\KvK\ServiceProvider::class,
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Alexwijn\KvK\Client as KvK;
class CompanyController
{
public function index(Request $request, KvK $kvk)
{
return $kvk->companies()->search($request->query);
}
}