This repository was archived by the owner on Nov 27, 2020. It is now read-only.
Releases: mcrumm/phlack
Releases · mcrumm/phlack
Attachment Properties
Simple Messages FTW!
Create Phlack like this:
$phlack = new Crummy\Phlack\Phlack('https://my.webhook.url');Send a message like this:
$phlack->send('Heyo!');Send custom messages like so:
$phlack->send([
'icon_emoji' => ':taco:',
'text' => "I'm a taco!"
]);API Chat Methods
The following API methods have been added:
Thanks to @kordero for the update!
New API methods
API methods have been added for the following:
Thanks goes to @tijsverkoyen for the service description update.
Hot-fix: Doctrine Collections
- Updated composer dependencies for
doctrine/collections
Slack API Integration
- Phlack now contains a (partial) implementation of the Slack API
- Fixed some typos in the examples.
MessageBuilder Attachments
- Attachments can now be created and added to the MessageBuilder via the
createAttachment()workflow. - Message now extends Partial, which now extends Hash, making Hash the common root for all incoming and outgoing message objects.
- Closures may now for be used Bot matchers, in addition to the previously defined MatcherInterface.
- Added a
shout()method to the ResponderInterface for alert notifications. - Link formatting and message escaping, per Slack Guidelines, is now included out of the box. All credit for the regex in the LinkFormatter is due StevenSloan and his slack-notifier project.
v0.4.5
Deprecated the get*() methods on Hash; replaced with protected properties.
Deprecated the get*() methods on CommandInterface; replaced with get($key).
Added a reply($user, $text) to the ResponderInterface.
Added reply($user, $text) to the Iterocitor in the form of @-reply messages.
Fixed potential infinite loop problems in RepeaterBot by using the reply() method.