angelo8828 / slack
A simple PHP package for sending messages to Slack, with a focus on ease of use and elegant syntax. Future-proofed version of https://github.com/maknz/slack
Requires
- php: >=7.2
- ext-mbstring: *
- guzzlehttp/guzzle: >=4.0
Requires (Dev)
- mockery/mockery: 1.6.5
- phpunit/phpunit: 9.6.10
Suggests
- maknz/slack-laravel: Required for Laravel support
- nexylan/slack-bundle: Required for Symfony bundle support
README
A simple PHP package for sending messages to Slack with incoming webhooks, focussed on ease-of-use and elegant syntax.
This version was directly forked from Maknz's Slack Library for PHP. The original project is no longer maintained and not working anymore for PHP projects having Guzzle below version 7.0.
Please see this comparison tool to check the changes I made. Please see original repository to see how it works. I will not change nor add to any of the functionalities of the original source code
Usage Notes
Please use Angelo8828
on namespaces instead of Maknz
. For example, use Angelo8828\Slack\Client
instead of Maknz\Slack\Client
Releases/Requirements
The project will contain 2 releases
1.9.0
- for PHP versions above 5.5 or HHVM.
2.0
- for PHP versions above 7.2
For the functionalities, there should be no difference between 1.9.0
and 2.0
. The only difference between the two is that 2.0
has updated PHPUnit, to have the package's automated test modernized and updated
Installation
You can install the package using the Composer package manager. You can install it by running this command in your project root:
composer require angelo8828/slack