LaravelPackages.net
Acme Inc.
Toggle sidebar
gonzaloner/laravel-trustspot

A very basic TrustSpot API client wrapper for Laravel

21
0
0.2.1
About gonzaloner/laravel-trustspot

gonzaloner/laravel-trustspot is a Laravel package for a very basic trustspot api client wrapper for laravel. It currently has 0 GitHub stars and 21 downloads on Packagist (latest version 0.2.1). Install it with composer require gonzaloner/laravel-trustspot. Discover more Laravel packages by gonzaloner or browse all Laravel packages to compare alternatives.

Last updated

TrustSpot

TrustSpot API client wrapper for Laravel

Laravel-TrustSpot incorporates the TrustSpot API into your Laravel or Lumen project.

Installation

Add Laravel-TrustSpot to your composer file via the composer require command:

$ composer require gonzaloner/laravel-trustspot

Laravel 5.5+ will use the auto-discovery function.

In Laravel 5.4 (or if you are not using auto-discovery) register the service provider by adding it to the providers key in config/app.php. Also register the facade by adding it to the aliases key in config/app.php.

'providers' => [
    ...
    Gonzaloner\LaravelTrustSpot\LaravelTrustSpotServiceProvider::class,
],

'aliases' => [
    ...
    'LaravelTrustSpot' => Gonzaloner\LaravelTrustSpot\Facades\LaravelTrustSpot::class,
]

In order to add your API keys you have to execute:

$ php artisan vendor:publish --provider="Gonzaloner\LaravelTrustSpot\LaravelTrustSpotServiceProvider"

After that, config/laraveltrustspot.php will be created. Inside this file you will find all the fields that can be edited in this package.

Usage

At the moment, only the Company Review Get API is supported.

Get company reviews

Should be called in a view like this:

{{ LaravelTrustSpot::company->get(optional int $limit, optional int $offset, optional string $sort) }}

License

MIT License Copyright (c) 2017

Comments