Download the PHP package lupuscoding/webhook-teams without Composer
On this page you can find all versions of the php package lupuscoding/webhook-teams. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lupuscoding/webhook-teams
More information about lupuscoding/webhook-teams
Files in lupuscoding/webhook-teams
Package webhook-teams
Short Description A small library to create messages for Microsoft Teams
License MIT
Homepage http://github.com/lupuscoding/webhook-teams
Informations about the package webhook-teams
webhook-teams - MS Teams Webhook Package
A small library to create messages for Microsoft Teams.
Contents
- Requirements
- Install
- Development
- Usage
- Testing
Requirements #
- PHP >= 7.4
Install #
Usage #
Create a message card
Create a message card section
Create an action card
Create an action card input
Create an action card action
Send a card
Development #
- Every contribution should respect PSR-2 and PSR-12.
- Methods must provide argument types and return types.
- Class properties must be typed.
- doc blocks must only contain descriptive information.
- doc blocks may additionally contain a type declaration for arguments or return values, if the type declaration is not precise.
For example: may not be precise if the method returns an array of arrays or objects. Consider a doc block entry like or for clarification.
Testing #
First install phpunit by executing
Then start phpunit by executing
Further Testing (optional)
Every test request is sent to Pipedream. This site processes the requests and build valid responses. Also every request is forwarded to this Request Bin, so that you can view the request data.
To inspect the requests, you can login with your GitHub account and copy my published
Webhook Workflow. Please make sure to
change the publicBinUrl variable inside the workflow nodejs step, to your own Request Bin.
After creating your Pipedream Webhook Workflow, just modify the constant inside the
and class.*
All versions of webhook-teams with dependencies
ext-json Version *
ext-curl Version *