larva / larva-client
This is a Larva client.
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.6
2019-05-15 10:05 UTC
Requires
- ext-json: *
- illuminate/support: ^5.0
- larva/supports: ^1.1
README
This is a Laravel Api adapter.
Installation
composer require larva/larva-client
for Laravel
This service provider must be registered.
// config/app.php 'providers' => [ '...', Larva\Client\LarvaServiceProvider::class, ];
edit the config file: config/larva.php
add config
<?php return [ 'endpoint' => '', 'client_id' => env('LARVA_CLIENT_ID', 'your-larva-client-id'), 'client_secret' => env('LARVA_CLIENT_SECRET', 'your-larva-client-secret'), 'scope' => '', 'timeout' => 5.0, 'httpOptions' => [ 'http_errors' => false, ], ];
Use
use Larva\Client\Larva; $response = Larva::get('api/oatuh/test'); print_r($response);