Download the PHP package marshmallow/slack-extended-envoy without Composer

On this page you can find all versions of the php package marshmallow/slack-extended-envoy. 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 slack-extended-envoy

alt text

Slack Extended for Laravel Envoy

Latest Version on Packagist Total Downloads

Rich Text notification for Laravel Envoy.

This package sends a richly formatted Slack message from your Laravel Envoy deployment scripts. Instead of a plain line of text, it posts a Slack Block Kit attachment with a colored success/failure header, the release number, deployment details (host, branch, PHP version, the user who triggered the deploy) and a button linking back to GitHub.

Installation

Install the package via Composer:

Usage

The entry point is the Marshmallow\SlackExtended\SlackExtended class. Build a message with make(), optionally set the failing task with task(), and call send() to post it to your Slack Incoming Webhook.

Constructor / make() arguments

Argument Type Default Description
hook string — The Slack Incoming Webhook URL to post the message to.
channel mixed '' The Slack channel the message is posted to.
options array [] The deployment details rendered in the message (see below). When empty, a set of placeholder values is used.
success bool false Whether the deployment succeeded. Controls the header text, color (green/red) and image.

The options array is rendered into the message body and recognises these keys:

Key Description
host The host the deployment ran on.
release The release number, shown as #{release}.
user The user that triggered the deployment. Known handles (LTKort, stefvanesch, lucienversendaal) are mapped to a Slack mention; others render as "Unknown user".
branch The branch that was deployed.
php_version The PHP version used for the deployment.
github_url The URL the "View" button links to.

Reporting the failing task

When a deployment fails, use task() to include the name of the task that failed in the message. task() is chainable and returns the instance:

Using it from Envoy

Call the package from your Envoy.blade.php deployment hooks, for example in @error and @finished:

Credits

Security Vulnerabilities

Please report security vulnerabilities by email rather than via the public issue tracker.

License

The MIT License. Please see the License File for more information.


All versions of slack-extended-envoy with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
guzzlehttp/guzzle Version ^6.0|^7.0
laravel/envoy Version ^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 marshmallow/slack-extended-envoy contains the following files

Loading the files please wait ...