Download the PHP package rocketfellows/ms-teams-webhook-message-sender without Composer

On this page you can find all versions of the php package rocketfellows/ms-teams-webhook-message-sender. 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 ms-teams-webhook-message-sender

Microsoft Teams webhook message sender.

PHPStan Badge

This package is designed for sending messages to Microsoft Teams (MS Teams) channels using webhooks (incoming webhook or connector). For more information about sending messages to MS Teams channels using web hooks see https://learn.microsoft.com/en-us/microsoftteams/platform/webhooks-and-connectors/how-to/connectors-using?tabs=cURL.

Installation.

Dependencies.

Current implementation dependencies:

MS Teams webhook message sender description.

Basic package types.

Connector.

rocketfellows\MSTeamsWebhookMessageSender\configs\Connector - a class that encapsulates the connection configuration for sending a message.

Class description:

Message.

rocketfellows\MSTeamsWebhookMessageSender\models\Message - a class that encapsulates message data to be sent via a webhook and implements the JsonSerializable interface.

Class description:

Interfaces.

MSTeamsWebhookMessageSenderInterface.

rocketfellows\MSTeamsWebhookMessageSender\MSTeamsWebhookMessageSenderInterface - interface for sending a message via a webhook uses a Connector type value as a connection, and a Message type value as a message.

Interface exceptions:

Usage examples.

Send message with title:

Result:

Send message without title:

Result:

MSTeamsWebhookTextSenderInterface.

rocketfellows\MSTeamsWebhookMessageSender\MSTeamsWebhookTextSenderInterface - interface for sending a message via a webhook uses a value of type Connector as a connection, and a value of type string (message text) as a message.

Interface exceptions:

Usage examples.

Send text:

Result:

MSTeamsWebhookArrayMessageSenderInterface.

rocketfellows\MSTeamsWebhookMessageSender\MSTeamsWebhookArrayMessageSenderInterface - interface for sending a message via a webhook uses a Connector type value as a connection, and an array type value as a message.

Interface exceptions:

Usage examples.

Send message with title:

Result:

Send message without title:

Result:

Send message with section:

Result:

MSTeamsWebhookJsonMessageSenderInterface.

rocketfellows\MSTeamsWebhookMessageSender\MSTeamsWebhookJsonMessageSenderInterface - interface for sending a message via a webhook uses a value of type Connector as a connection, and a value of type string (a json string with message data) as a message.

Interface exceptions:

Usage examples.

Send message with title:

Result:

Send message without title:

Result:

Send message with sections:

Result:

Interfaces implementation.

MSTeamsWebhookMessageSender.

rocketfellows\MSTeamsWebhookMessageSender\senders\MSTeamsWebhookMessageSender - service for sending messages via a webhook.

Sender implements the following interfaces:

GuzzleHttp Client is used to send a request with a message.

Usage examples.

Sending a Message without a title:

Result:

Sending a Message with a title:

Result:

Sending a message as a string:

Result:

Sending a message as an array:

Result:

Sending a message as a json string:

Result:

Contributing.

Welcome to pull requests. If there is a major changes, first please open an issue for discussion.

Please make sure to update tests as appropriate.


All versions of ms-teams-webhook-message-sender with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
guzzlehttp/guzzle Version ^7.8
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 rocketfellows/ms-teams-webhook-message-sender contains the following files

Loading the files please wait ....