Rocket Chat REST API client for Laravel 7.x.
egarabini/laravel-rocket-chat is a Laravel package for rocket chat rest api client for laravel 7.x..
It currently has 0 GitHub stars and 2.143 downloads on Packagist (latest version 0.0.13).
Install it with composer require egarabini/laravel-rocket-chat.
Discover more Laravel packages by egarabini
or browse all Laravel packages to compare alternatives.
Last updated
laravel-rocket-chat is a rest client package for Laravel to communicate with Rocket.Chat API.
composer require egarabini/laravel-rocket-chat
Open your Laravel config file config/app.php and in the $providers array add the service provider for this package.
\Timetorock\LaravelRocketChat\Provider\LaravelRocketChatServiceProvider::class
Generate the configuration file running in the console (only if you added LaravelRocketChatProvider) :
php artisan vendor:publish --tag=config
Write api url, admin credentials, otherwise you'll need to login as user to make requests. By default this package login as admin to make requests.
<?php
$userClient = new \Timetorock\LaravelRocketChat\Client\UserClient();
$userClient->create(new \Timetorock\LaravelRocketChat\Models\User([
'email'=> '[email protected]',
'name' => 'test',
'password' => '12345',
'username' => 'test',
]))
?>