{"id":23152980,"url":"https://github.com/t3n/slack","last_synced_at":"2025-08-24T08:21:46.154Z","repository":{"id":48594707,"uuid":"173922044","full_name":"t3n/slack","owner":"t3n","description":"Flow Framework package that wraps the nexylan/slack library to send messages to slack","archived":false,"fork":false,"pushed_at":"2021-07-19T05:18:16.000Z","size":14,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T13:23:15.208Z","etag":null,"topics":["flow","flowframework","flowpackage","neoscms"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t3n.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-05T10:05:56.000Z","updated_at":"2020-01-28T13:42:51.000Z","dependencies_parsed_at":"2022-08-27T21:50:38.763Z","dependency_job_id":null,"html_url":"https://github.com/t3n/slack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/t3n/slack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3n%2Fslack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3n%2Fslack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3n%2Fslack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3n%2Fslack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t3n","download_url":"https://codeload.github.com/t3n/slack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t3n%2Fslack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259768514,"owners_count":22908228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flow","flowframework","flowpackage","neoscms"],"created_at":"2024-12-17T19:20:02.981Z","updated_at":"2025-06-14T06:02:28.030Z","avatar_url":"https://github.com/t3n.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CircleCI](https://circleci.com/gh/t3n/slack.svg?style=svg)](https://circleci.com/gh/t3n/graphql) [![Latest Stable Version](https://poser.pugx.org/t3n/slack/v/stable)](https://packagist.org/packages/t3n/graphql) [![Total Downloads](https://poser.pugx.org/t3n/slack/downloads)](https://packagist.org/packages/t3n/graphql)\n\n# t3n.Slack\n\nFlow Package to send messages to Slack. This is package wraps the [maknz/slack](https://github.com/maknz/slack) library.\n\nSimply install the package via composer:\n\n```bash\ncomposer require \"t3n/slack\"\n```\n\n## Configuration\n\nIn order to send messages to Slack you need to add an incoming WebHook to your Slack workspace. Read more about it here [https://api.slack.com/incoming-webhooks](https://api.slack.com/incoming-webhooks)\n\nAs the incoming webhooks are treated as Slack Apps they are bound to a single channel. Therefore you can configure multiple \"presets\" to use several webhooks:\n\n```yaml\nt3n:\n  Slack:\n    configurations: \n      myPreset: # you preset name\n        webhookUrl: 'https://hooks.slack.com/services/...'\n        clientSettings: [] # additional client configurations\n```\n\nRead more about the possible client settings and options here: https://github.com/maknz/slack#settings\n\n## Sending messages\n\n```php\n\n/**\n * @Flow\\Inject\n * @var \\t3n\\Slack\\Service\\SlackService\n */\nprotected $slackService;\n\npublic function sendAMessage()\n{\n    $message = $this-\u003eslackService-\u003ecreateMessage('myPreset');\n    $message-\u003esend('some message');\n}\n```\n\nIf you create a message you need to pass the preset name. Check [maknz/slack documentation](https://github.com/maknz/slack#sending-messages) for all options that are\navailable on the message object\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3n%2Fslack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft3n%2Fslack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft3n%2Fslack/lists"}