Run in console below command to download package to your project:
composer require bilalbaraz/laravel-yammer-client
guzzlehttp/guzzle
Publish config settings:
php artisan vendor:publish --provider="Yammer\YammerServiceProvider"
or copy /vendor/bilalbaraz/laravel-yammer-client/config/yammer.php
into /config
directory.
and add below global variables to your .env file:
YAMMER_CLIENT_ID=[YAMMER-CLIENT-ID WILL BE HERE]
YAMMER_CLIENT_SECRET=[YAMMER-CLIENT-SECRET WILL BE HERE]
YAMMER_TOKEN=[YAMMER-ACCESS-TOKEN WILL BE HERE]
Where you want to use this package, must be added below namespace:
use Yammer\YammerClient;