egarabini/laravel-rocket-chat

Rocket Chat REST API client for Laravel 7.x.
2,143
Install
composer require egarabini/laravel-rocket-chat
Latest Version:0.0.13
License:MIT
Last Updated:May 31, 2020
Links: GitHub  ·  Packagist
Maintainer: egarabini

laravel-rocket-chat is a rest client package for Laravel to communicate with Rocket.Chat API.

How to install

composer require egarabini/laravel-rocket-chat

Config && Facades

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

Publish config for admin user

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.

Example

<?php

$userClient = new \Timetorock\LaravelRocketChat\Client\UserClient();
$userClient->create(new \Timetorock\LaravelRocketChat\Models\User([
        'email'=> 'test@test.com',
        'name' => 'test',
        'password' => '12345',
        'username' => 'test',
]))

?>

Related Packages

timetorock/laravel-rocket-chat

Rocket Chat REST API client for Laravel 6.x, 7.x, 8.x, 9.x, 10.x

13,435 8
halilcosdu/laravel-replicate

Laravel client for Replicate predictions, files, models, trainings, and signed w...

15,974 54
bedezign/laravel-openapi-consumer

Laravel component to load an OpenAPIY JSON file and assist in consuming the unde...

24 3
tomshaw/google-api

A Laravel Google API Client.

1,944 60
thecyrilcril/imagekit-laravel-client

A Laravel-native ImageKit API client built on Illuminate\Http\Client: typed requ...

248 0