Download the PHP package margatampu/laravel-teams-logging without Composer

On this page you can find all versions of the php package margatampu/laravel-teams-logging. 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 laravel-teams-logging

laravel-teams-logging

Laravel handler to sending messages to Microsoft Teams using the Incoming Webhook connector.

Installation

Require this package with composer.

Integration

Package tested and worked with Laravel and Lumen framework (10+).

Laravel: After installation using composer finishes up, you'll have to add the following line to your config/app.php:

Lumen: For Lumen, you'll have to add the following line to your bootstrap/app.php:

Laravel: Then copy teams config file from laravel-teams-logging to your config folder:

Lumen: For Lumen, you need to copy file manually to your config folder and enable it in bootstrap/app.php:

Create a custom channel using laravel logging file or create new logging config file for lumen.

Add this configuration to config/logging.php file

or simply add name to specify different project name for each connector.

There are 2 available styles for microsoft teams message, using simple and card. You can see card style in results style which is difference from simple style.

After added configs to your config/logging.php file, add INCOMING_WEBHOOK_URL variable to your .env file with connector url from your microsoft teams connector. Please read microsoft teams document to find your connector url.

Usage

To send a simple error message to teams channel, you kindly use script below:

Or you can include additional info to card message using log context.

When using simple style, log context will ignore from message.

You can also add teams to the default stack channel so all errors are automatically send to the teams channel.

Results

Here are some results of notifications sent to microsoft teams channel using card style.

License

This laravel-teams-logging package is available under the MIT license. See the LICENSE file for more info.


All versions of laravel-teams-logging with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0|^8.0
monolog/monolog Version ^1.23|^2.0
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 margatampu/laravel-teams-logging contains the following files

Loading the files please wait ....