dev-master / 0.1.x-dev 2019-08-28 12:16 UTC

This package is auto-updated.

Last update: 2024-04-29 04:09:24 UTC


README

Packagist License Latest Stable Version Total Downloads

This package provide access to the Kvk API using one simple class.

Installation

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.

Laravel 5.5+:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Alexwijn\KvK\ServiceProvider::class,

Example

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