gonzaloner/laravel-trustspot

A very basic TrustSpot API client wrapper for Laravel

0.2.1 2017-10-01 00:49 UTC

This package is not auto-updated.

Last update: 2025-07-11 11:27:32 UTC


README

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