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

This package is auto-updated.

Last update: 2024-09-29 05:02:41 UTC


README

Packagist License Latest Stable Version Total Downloads

本软件包通过一个简单的类提供对Kvk API的访问。

安装

使用composer安装此包。

composer require alexwijn/kvk

Laravel 5.5使用包自动发现,因此不需要您手动添加ServiceProvider。

Laravel 5.5+

如果您不使用自动发现,请将ServiceProvider添加到config/app.php中的providers数组中

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