Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Slack Php Api Laravel Package

jolicode/slack-php-api

A complete, type-safe PHP client for the Slack API, generated from Slack's official OpenAPI specification. It covers every endpoint and model and works with any PSR-18 HTTP client and PSR-16 cache, so it drops easily into modern PHP projects.

Deep Wiki
Context7

Product Decisions This Supports

  • Slack integration as a product feature. If our roadmap includes "send alerts to Slack," "post digests to a channel," "approve from Slack," or "create tickets from Slack," this package is the transport layer for outbound Web API calls (chat.postMessage, views.open, conversations.list, users.lookupByEmail, files.upload, admin.* endpoints). It makes those features scoped in days rather than weeks because every Slack Web API method is already typed.
  • Enterprise/prosumer upsell decisions. Slack integrations are frequently a paid-tier or "Team plan" gate. Knowing we can ship any Slack endpoint the spec exposes — not just the three methods Laravel's notification channel supports — widens what we can credibly bundle into a higher tier (e.g., interactive approvals, workflow triggers, audit-channel routing).
  • Build vs. buy vs. middleware. This forces the real decision: build Slack connectivity in-house (this package + our own OAuth/eventing), buy an integration platform (Merge, Paragon, Zapier), or buy an iPaaS connector. This package makes the "build" option much cheaper than hand-rolling Guzzle calls, which is exactly the cost input that decision needs.
  • Roadmap sequencing for interactivity. The package gives us outbound calls and typed payloads for Block Kit views, but not the inbound half. That clarifies that any "interactive" roadmap item is really two workstreams (send + receive), so we plan Slack OAuth install flow and event/slash-command endpoints as separate, estimable epics rather than one vague "Slack integration" line item.
  • Marketplace/app-directory ambition. If a public Slack app listing is on the roadmap, this package covers the API surface needed for a compliant app (scopes, method coverage, admin endpoints), which de-risks the technical review part of the submission.
  • Maintenance and dependency posture. 256 stars and a codegen-based maintenance model signal a small but self-updating dependency. This is an input to our "acceptable third-party risk" policy and a candidate for an architecture decision record rather than a silent composer require.

When to Consider This Package

Adopt when:

  • We are on PHP 8.x / Laravel and need more than one Slack API method. The moment we need views.open, conversations.invite, chat.update, or admin.conversations.* alongside posting messages, laravel/slack-notification-channel stops being enough and this package becomes the right-sized tool.
  • We want typed request/response objects generated from Slack's own OpenAPI spec, so IDE autocomplete and static analysis catch method/argument mistakes at build time instead of in production against a live workspace.
  • We need broad endpoint coverage without hand-writing clients — codegen from the official spec means Slack adding a method is a dependency bump, not our engineering work.
  • We already use PSR-18/PSR-17 HTTP clients and want this client to sit on top of our existing Guzzle/HTTP stack, proxies, retry middleware, and logging.
  • Our use case is outbound-first: notifications, digests, bot messages, opening modals in response to our own triggers.

Look elsewhere or plan extra work when:

  • We need Socket Mode, the Events API loop, or slash-command routing with signature verification. This package is a client, not an app framework — that inbound layer is ours to build (or we evaluate Bolt-style frameworks).
  • We need the OAuth installation flow (multi-workspace install, token rotation, scope management, secure token storage). None of that is solved here; it is real product and security work.
  • The requirement is a single "notify a channel" message. The built-in Laravel Slack notification channel is fewer moving parts and fewer dependencies.
  • Community size and longevity are gating criteria. 256 stars means a small maintainer base; if our compliance process requires an actively supported vendor with SLAs, a commercially backed service or the older, more widely used Slack PHP client may be preferred despite the ergonomics tradeoff.
  • We need AI/agent-style Slack surfaces (Assistant, streaming) where ecosystem tooling and examples are thin — expect to test against the live API rather than rely on docs and community answers.

How to Pitch It (Stakeholders)

To executives (30 seconds): "This is a free, MIT-licensed PHP library that lets our product talk to Slack's full API with type-safe, automatically generated code. It turns Slack integration from a multi-sprint engineering project into a scoped feature. The commercial upside is that Slack connectivity is a standard reason customers upgrade to a Team or Enterprise tier, and full API coverage — not just 'send a message' — is what makes an approvals, alerting, or workflow feature worth paying for. Risk is modest: it is a small open-source project, so we treat it as a replaceable dependency rather than a platform bet."

To engineering leads:

  • Generated directly from Slack's official OpenAPI specification, so the method surface tracks Slack itself instead of drifting.
  • Typed DTOs and enums for requests and responses; built on PSR-18/PSR-17 so it plugs into our existing HTTP client, retries, timeouts, and observability.
  • Fully mockable in tests; no framework lock-in and a trivial Laravel service-provider binding.
  • Explicitly not included, and must be planned as separate work: OAuth multi-workspace install and token rotation, Events API/Socket Mode, slash-command signature verification, and rate-limit/backoff policy beyond what the HTTP client provides.
  • Recommendation: adopt behind a thin internal adapter interface so we can swap clients if maintenance stalls; pin versions and monitor Slack spec bumps.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings