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
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-19