rocketfirm/mattermost-driver 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rocketfirm/mattermost-driver

Composer 安装命令:

composer require rocketfirm/mattermost-driver

包简介

This Driver is a PHP implementation of the official Mattermost Web Services API.

README 文档

README

The Laravel Driver to interact with the Mattermost Web Service API.

Please read the api documentation for further information on using this application.

Installation

Composer

The best way to install mattermost-driver is to use Composer:

composer require rocketfirm/mattermost-driver

Read more about how to install and use Composer on your local machine here.

Laravel

After installation launch the command:

php artisan vendor:publish

to publish the configuration file. You'll find it at config/mattermost.php

Configuration

Edit the file config/mattermost.php as you prefer.

Usage

use \Rocketfirm\MattermostDriver\Facades\Mattermost;
 
// Retrieve the driver
$driver = Mattermost::server('default');

// Retrieve the User Model
$userModel = $driver->getUserEndpoint();

// Retrieve the User Model directly (on the default server)
$userModel = Mattermost::server()->getUserEndpoint();

Via dependency injection

use \Rocketfirm\MattermostDriver\Contracts\DriverContract;

// Retrieve the driver
$mattermost = app()->make(DriverContract::class);

// Retrieve the User Model
$userModel = $driver->getUserEndpoint();

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-19