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
Laravel Youdu

Laravel Youdu Laravel Package

huangdijia/laravel-youdu

Laravel integration for the Youdu (有度) enterprise messaging platform. Send text, image, file, and app messages to users, departments, and groups, and route Laravel notifications through Youdu with a simple, configurable API.

View on GitHub
Deep Wiki
Context7

youdu SDK for Laravel

Frequently asked questions about Laravel Youdu
How do I install huangdijia/laravel-youdu in a Laravel application?
Install it with composer require huangdijia/laravel-youdu; the package ships a Laravel service provider so it is auto-discovered. Then publish the config file with php artisan vendor:publish and populate your Youdu corp_id, agent_id, secret and app_id values via environment variables. Before pinning, check the composer.json PHP and Laravel constraints against your runtime and confirm there are no Guzzle or PSR version conflicts with packages you already use.
Which Laravel and PHP versions does laravel-youdu v3 support?
The supported matrix must be confirmed from the package's composer.json rather than assumed, since v3.x is a major bump from v2 and constraints can shift between majors. Verify your PHP version, Laravel version and transitive Guzzle/PSR requirements all fall inside what the package declares. If your stack sits outside the declared range, test in a branch before adopting it in production.
How do I configure the Youdu corp_id, agent_id, secret and app_id credentials?
Publish the package config file and set corp_id, agent_id, secret and app_id as environment variables so secrets stay out of version control. Store the values in your secrets vault and cache the config in production with php artisan config:cache. The package reads configuration through Laravel's config repository, so a config-driven facade is the intended usage pattern.
Can I send Laravel notifications through Youdu?
Yes. The package provides a Youdu notification channel so you can route standard Laravel notifications through the enterprise messaging platform instead of building HTTP calls yourself. Implement ShouldQueue on those notifications so outbound calls run on a queue worker rather than inside a user request. This keeps Youdu latency and rate limits off your request-critical path.
How do I send a message to a user, department or group in Youdu?
The package exposes text, image, file and app message types and supports addressing users, departments and groups through the facade API. Department handling is the area that received the v3.0.1 getId correction, so validate department identifiers against your tenant's actual payloads rather than assuming a format. Run one text send and one department lookup in a non-production tenant before wiring real notifications.
What does the dept getId fix in v3.0.1 change, and does it affect my integration?
v3.0.1 contains a small correctness fix in the department-ID accessor, which suggests v3.0.0 had rough edges in the department API. If your code reads department metadata or resolves departments before sending, test that path explicitly after upgrading. If you only send to users or groups by known identifiers, the fix is likely latent for you but still worth confirming in a staging tenant.
Is laravel-youdu safe to use in production?
It is reasonable for a side-channel integration but should not be the only delivery path for critical alerts. The package is effectively single-maintainer with a small contributor base, so plan a fallback such as a direct HTTP client behind your own gateway interface. You also inherit Youdu's rate limits, token expiry and IP-allowlist behaviour, so add retries, structured logging, a circuit breaker and an alerting fallback before cutover.
How do I queue Youdu messages so they don't block user requests?
Use a queued notification channel or dispatch a job that calls the facade, and run it on Horizon or a standard queue worker. Add retry and backoff policies around the Youdu client so transient failures do not silently drop messages. Because the vendor owns the error semantics, log the raw response payloads you receive so you can diagnose rate limiting and token problems later.
How should I test a Youdu integration without spamming a real tenant?
Wrap the package facade behind an internal MessagingGateway interface and bind a fake implementation in your test container so unit tests never reach the Youdu API. Reserve real calls for a dedicated non-production Youdu tenant where you can exercise one text send and one department lookup. That adapter also limits how much of your codebase references the facade directly, which makes replacing the package far cheaper later.
Should I use laravel-youdu or call the Youdu HTTP API directly?
If Youdu is already your company's mandated messaging platform, this package saves you from hand-rolling HTTP clients, token caching and a notification channel in Laravel. If Youdu is not mandated, remember that adding the package means adopting the platform, including its data egress, retention and DLP implications. Either way, keep a documented direct-HTTP fallback so an abandoned dependency becomes a swapped adapter rather than a rewrite.
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.
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect
youbar/easy-crud
c-point-labs/laravel-hostyourai
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo