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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-mattermost-driver

php-mattermost-driver

Latest Stable Version Scrutinizer Code Quality Total Downloads

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

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

PHP Build Version
Package Version
Requires php Version >=5.5.0
ext-json Version *
psr/http-message Version ^1.0
pimple/pimple Version ~3.0
guzzlehttp/guzzle Version ^6.2|^7.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gnello/php-mattermost-driver contains the following files

Loading the files please wait ....