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
Teams For Laravel

Teams For Laravel Laravel Package

roundly-consulting/teams-for-laravel

Send messages and notifications from Laravel to Microsoft Teams. This package provides a simple integration for posting to Teams incoming webhooks, with support for message formatting and configurable channel alerts.

View on GitHub
Deep Wiki
Context7

Associate users with teams, roles, permissions, and invitations in Laravel.

Frequently asked questions about Teams For Laravel
How do I install teams-for-laravel in a Laravel project?
Install it with Composer using composer require roundly-consulting/teams-for-laravel. Then publish any package configuration if the package provides it and set your Microsoft Teams incoming webhook URL. Because it is a Laravel package, normal package discovery should register its service provider. Run your test suite after installation to confirm the channel is available.
How do I send a Microsoft Teams notification from Laravel?
Create a Laravel notification class and route it through the package's Teams notification channel. Configure the incoming webhook URL either globally or per notification, depending on your setup. You can use the same notification patterns you already use for Slack, mail, or database notifications.
How do I configure the Microsoft Teams incoming webhook URL?
Put the Teams webhook URL in your Laravel configuration or environment file so it is not hard-coded. The package supports configurable incoming webhooks, and the overview also mentions per-notification webhook customization. After changing configuration in production, clear Laravel's config cache.
Can teams-for-laravel notifications be queued?
Yes, the package is described as queue-friendly and integrates with Laravel's notification system. Implement Laravel's ShouldQueue contract on your notification class to have it queued. Make sure your queue workers have access to the same Teams webhook configuration as your web process.
What message formats can I send to Microsoft Teams with this package?
The package supports simple text messages as well as rich MessageCard and Adaptive Card payloads. That lets you choose between plain alerts and more structured, actionable messages. The exact card structure should follow Microsoft Teams incoming webhook requirements.
Which Laravel and PHP versions does teams-for-laravel support?
The provided package overview does not list exact Laravel and PHP version constraints. Check the repository's composer.json, README, and release notes for the supported compatibility matrix before installing or upgrading. This is especially important if you are on an older Laravel version or a newer PHP release.
Can I customize the Teams webhook or payload for a single notification?
Yes, the package provides a clean API for per-notification webhook and payload customization. That means one notification can target a different Teams channel or use a different card structure without changing global configuration. Use this carefully so webhook URLs and payload formats remain maintainable across your application.
How can I test Microsoft Teams notifications without posting to a real channel?
Use Laravel's notification fakes to assert that the expected notification is sent and that the Teams channel is selected. In tests, override the configured webhook URL with a test value and, where applicable, fake outbound HTTP calls so no real Teams channel is contacted. Keep at least one integration-style test against a dedicated test webhook if your team needs to validate card rendering.
What should I consider before using teams-for-laravel in production?
Store Teams webhook URLs as secrets and avoid committing them to source control. Clear configuration caches during deployment and ensure queue workers can send notifications reliably. Also plan for webhook failures, retries, and monitoring so critical alerts are not silently lost.
Is teams-for-laravel low maintenance, and what are the alternatives?
Maintenance should be limited to normal Composer updates, Laravel version compatibility checks, and keeping webhook configuration current. Alternatives include Laravel's built-in mail or database channels, Slack notifications, or custom HTTP calls to Teams webhooks. Choose this package when you want a Laravel-native Teams channel without writing custom webhook code.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager