Weave Code
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 Laravel Package

displayce/slack

PHP Slack API client with object-based payload and response classes mirroring Slack’s docs. Supports all Slack API methods, serializes data via JMS Serializer, and includes docs for installation, OAuth/tokens, usage, methods, and events.

View on GitHub
Deep Wiki
Context7

Access your Slack Team's API through PHP objects.

Frequently asked questions about Slack
Does displayce/slack support Slack’s v2+ API endpoints (e.g., conversations.history instead of channels.history)?
No, the package was last updated in 2020 and lacks documentation for Slack v2+ endpoints. You’ll need to manually audit Slack’s API docs for breaking changes or risk using deprecated methods. Consider wrapping calls in feature flags to isolate failures.
How do I install displayce/slack in Laravel? Does it integrate with Laravel’s service container?
Install via Composer: `composer require displayce/slack`. While it doesn’t natively support Laravel’s service container, you can manually bind the `SlackClient` as a singleton in `AppServiceProvider`. No facades or queue jobs are included—you’ll need to create custom wrappers.
Is OAuth 2.1 supported? Slack deprecated OAuth 1.0 in 2023—will this package break my Laravel app?
No, OAuth 2.1 is not supported. The package relies on OAuth 1.0, which Slack disabled for new apps in 2023. Migrate to Slack’s official PHP client (`slack/slack-api-php-client`) or a Laravel-specific wrapper like `spatie/slack` to avoid auth failures.
Can I use displayce/slack for Slack Block Kit or Socket Mode in Laravel?
No, the package doesn’t support Block Kit or Socket Mode. These features require Slack’s v2+ API, which the package doesn’t cover. For modern Slack integrations, use `slack/slack-api-php-client` or build a custom Laravel wrapper.
How does displayce/slack handle Slack API errors (e.g., 429 Too Many Requests or 401 Invalid Auth)?
Errors are returned as raw HTTP responses or exceptions, but there’s no Laravel-specific exception handling. You’ll need to manually catch exceptions and implement retries (e.g., using Laravel’s `retry` helper) or rate-limit middleware like `spatie/ray` for production.
Does displayce/slack support Laravel queues for async Slack API calls (e.g., sending messages in the background)?
No, the package lacks native queue job support. To use Laravel queues, create a custom job (e.g., `SendSlackMessageJob`) that wraps the `SlackClient` methods. This requires manual implementation of retry logic for failed jobs.
Are there Laravel-specific features like facades, caching, or Eloquent models for Slack entities?
No, the package is framework-agnostic. You’ll need to manually create a facade (e.g., `Slack::chat()->postMessage()`) and implement caching (e.g., `laravel-cache`) or Eloquent models for Slack data. No built-in integration exists.
Why does displayce/slack mention Symfony 5 support if it’s not Laravel-compatible?
Symfony 5 support is irrelevant to Laravel and suggests the package is framework-agnostic. However, the lack of Laravel-specific updates (e.g., facades, queues, or event listeners) indicates stagnation. Prioritize alternatives like `spatie/slack` for active maintenance.
How can I test displayce/sack in Laravel? Are there built-in mocking tools?
No built-in testing utilities exist. Mock Slack API responses using tools like `vcr` or `mockery` to record and replay HTTP calls. Test rate limits manually by simulating 429 errors and verifying retry logic in your Laravel middleware.
What are the best alternatives to displayce/slack for Laravel? Should I use spatie/slack or Slack’s official client?
For Laravel, `spatie/slack` is the best alternative—it includes facades, queue jobs, and Laravel-specific features. Slack’s official client (`slack/slack-api-php-client`) is also a solid choice but lacks Laravel integrations. Avoid `displayce/slack` due to its outdated API support and lack of maintenance.
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.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky