Download the PHP package krisell/startup-slack-notification-laravel without Composer

On this page you can find all versions of the php package krisell/startup-slack-notification-laravel. 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 startup-slack-notification-laravel

Startup Slack Notification for Laravel

This package adds a command, startup-notification:slack which sends a startup-notification to slack to inform you when the server is started. This is useful during a deploy to get a notification when the deployment has been completed, during horizontal scaling to be notified when new servers are started, and to be notified if your server is restarted for unexpected reasons.

Installation

Add the package to your Laravel project.

The package is configured for automatic discovery, so unless you have other settings, you do not need to manually add the service provider.

Usage

Add your slack hook, either to the .env-variable STARTUP_SLACK_HOOK= or by publishing the configuration (using php artisan vendor:publish) and setting the slack_hook config value.

Run the command startup-notification:slack during server boot.

Defining custom data

You can optionally define custom data to be sent along the notification in services.startup-slack-notification.data. Any key-value pairs added there will be sent along with the Slack notification.

Testing an actual message

One of the tests is prepared to send an acutal slack message. To run this test, create a .hook-file in the /tests directory and set the contents to a slack hook URL. Alternatively, you may add the STARTUP_SLACK_HOOK env value to phpunit.xml.dist.

All other tests mock the actual sending of the notification, and instead makes assertions on the contents before transmission.

Licence

MIT

Author

Martin Krisell ([email protected])


All versions of startup-slack-notification-laravel with dependencies

PHP Build Version
Package Version
Requires laravel/slack-notification-channel Version ^3.2
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 krisell/startup-slack-notification-laravel contains the following files

Loading the files please wait ....