Download the PHP package gnello/php-mattermost-driver without Composer
On this page you can find all versions of the php package gnello/php-mattermost-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gnello/php-mattermost-driver
More information about gnello/php-mattermost-driver
Files in gnello/php-mattermost-driver
Package php-mattermost-driver
Short Description The Php Driver to interact with the Mattermost Web Service API
License MIT
Homepage https://github.com/gnello/php-mattermost-driver
Informations about the package php-mattermost-driver
php-mattermost-driver
The PHP 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 php-mattermost-driver is to use Composer:
Read more about how to install and use Composer on your local machine here.
Laravel
If you are going to install this library on laravel maybe you prefer to install the laravel-mattermost-driver.
V3
If you want to install the V3 Driver instead of the V4 one you should do:
Usage
Authentication
Login id and password
Token
Options
Below a list of all the Driver available options, for the Guzzle options please refer to its official documentation.
Option | Default value | Description |
---|---|---|
scheme | "https" | The URI scheme. |
basePath | "/api/v4" | The base path of the API endpoint. |
url | "localhost" | The URL of the Mattermost server, without the scheme (es. "www.mydomain.com"). |
login_id | null | The account username to use with the API. |
password | null | The account password to use with the API. |
token | null | The account token to use with the API, if specified it override the login_id and password. |
You can specify the options as shown in the following example:
Check results
This Driver follows the PSR-7 document therefore any response is a ResponseInterface type:
Users endpoint
Channels endpoint
Posts endpoint
Files endpoint
Preferences endpoint
Endpoints supported
- Bleve
- Bots
- Brand
- Channels
- Cluster
- Commands
- Compliance
- DataRetention
- Elasticsearch
- Emoji
- Files
- Groups
- Integration Actions
- Jobs
- LDAP
- OAuth
- Plugins
- Posts
- Preferences
- Reactions
- Roles
- SAML
- Schemes
- Status
- System
- Teams
- Threads
- Users
- Webhooks
Don't you see the endpoint you need? Feel free to open an issue or a PR!
Contact
All versions of php-mattermost-driver with dependencies
ext-json Version *
psr/http-message Version ^1.0
pimple/pimple Version ~3.0
guzzlehttp/guzzle Version ^6.2|^7.4