ipunkt/laravel-indexer-client

A php client for the laravel-indexer-service
1,118
Install
composer require ipunkt/laravel-indexer-client
Latest Version:2.1.0
PHP:>=7.0
License:MIT
Last Updated:Mar 15, 2019
Links: GitHub  ·  Packagist
Maintainer: rokde

laravel-indexer-client

Latest Stable Version Latest Unstable Version License Total Downloads

A php client for the laravel-indexer-service.

Installation

composer require ipunkt/laravel-indexer-client

If you need a < php7 release use the 1.* version.

Binding in Laravel

In any ServiceProvider do the following:

public function register()
{
    $this->app->bind(IndexerClient::class, function () {
        $host = config('indexer.service');
        $token = config('indexer.token');
        try {
            $httpClient = new Client();
            $client = new IndexerClient($host, $httpClient, $token);
            return $client;
        } catch (Exception $exception) {
            throw new \RuntimeException('IndexerClient can not be instantiated.', 0, $exception);
        }
    });
}

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

610,259,779 9,704
laravel/framework

The Laravel Framework.

551,557,428 34,802
laravel/tinker

Powerful REPL for the Laravel framework.

462,518,693 7,436