PHPackages                             ryantxr/slack-webhook - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ryantxr/slack-webhook

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ryantxr/slack-webhook
=====================

A minimal slack library

1.5.0(3y ago)4339MITPHPPHP ^7.1.8 || ^8.0CI failing

Since Sep 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ryantxr/slack-webhook)[ Packagist](https://packagist.org/packages/ryantxr/slack-webhook)[ RSS](/packages/ryantxr-slack-webhook/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (10)Used By (0)

Slack Webhook
=============

[](#slack-webhook)

This library provides a client for Slack Webhooks. With minimal code, you should be able to send a message to a channel.

This library does not try to do everything. It does one thing well.

It sends messages to Slack channels using Slack incoming webhooks.

This library uses Slack incoming webhooks. In the early days of slack, these were much easier to use than their API. It was certainly easier to set up on the Slack platform. To some extent, this is still true. There are no oauth permissions to set and the API itself is easier to understand.

Motivation
----------

[](#motivation)

I wanted a minimal library that can send a message with minimal effort. Think of it as a paperclip. It is easy to use and requires almost zero learning to use it. It should have very little complexity and require very little thinking to get it going.

This library is compatible with service containers.

Getting Started
---------------

[](#getting-started)

You can either copy the PHP files directly into your project or use composer.

Composer require command

`composer require ryantxr/slack-webhook`

Features
--------

[](#features)

- Minimal code to send a message
- Compatible with service containers
- Easy to use to any framework or even a plain php file

Usage
-----

[](#usage)

```
