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

Jiguang Sms Bundle Laravel Package

tourze/jiguang-sms-bundle

A Symfony bundle that integrates Jiguang SMS (JPush SMS) for sending verification codes and notification messages. Configure credentials and templates, then use the provided service to send SMS from your PHP application.

View on GitHub
Deep Wiki
Context7

Getting Started

  • Install the initial release explicitly, since 0.0.1 is early-stage: composer require tourze/jiguang-sms-bundle:^0.0.1.
  • Look first at composer.json, the README, DependencyInjection/, Resources/config/, and any service classes that wrap Jiguang SMS APIs. The release notes only link to the changelog, so source inspection is the reliable onboarding path.
  • This appears to be a Symfony-style bundle rather than a native Laravel package. In Laravel, expect to either manually register services or wrap the underlying Jiguang SMS client in a small application service.
  • Configure credentials and SMS defaults through environment variables, e.g. app key, master secret, sign name, and template ID, then expose them via config/services.php or a dedicated config/jiguang-sms.php.
  • First use case: send a verification-code SMS from a Laravel service or queued job, using the package’s client/service as the transport layer.

Implementation Patterns

  • Create a thin Laravel adapter service around the bundle’s SMS sender so controllers and jobs do not depend directly on Symfony service IDs or bundle internals.
  • Keep credentials in .env and map them into Laravel config. Avoid reading raw $_ENV or bundle-specific parameters throughout application code.
  • For day-to-day usage, wrap sends in a queued job with retries and structured logging. SMS providers are external dependencies, so network failures and rate limits should not block HTTP requests.
  • Normalize Jiguang responses into an application-level result object or exception. This keeps verification-code flows, order notifications, and alerting consistent.
  • If the bundle exposes events, listeners, or response DTOs, use them for delivery logging. If not, log request IDs and provider responses at the adapter boundary.
  • Integrate with Laravel’s container by binding the bundle client or your adapter as a singleton only if it is stateless and safe for reuse. Otherwise resolve it per job or request.
  • Use separate templates or sender profiles per use case, such as verification codes, transactional notifications, and operational alerts, rather than branching heavily inside one sender class.

Gotchas and Tips

  • 0.0.1 should be treated as experimental. Expect API and configuration changes; pin the version and review changelogs before upgrading.
  • The package name and structure suggest a Symfony bundle. Do not assume Laravel auto-discovery, facades, or publishable Laravel config exist. Verify and add explicit integration code if needed.
  • Release notes are effectively empty apart from the changelog link, so inspect source and tests before relying on documented behavior.
  • Jiguang SMS typically requires correct sign names, template IDs, and regional endpoint settings. Misconfigured templates often fail before credentials do.
  • Do not log master secrets, app keys, or full SMS payloads containing personal data. Log provider message IDs and sanitized error codes instead.
  • Add retry/backoff carefully. Authentication errors and invalid template errors should not be retried indefinitely; transient network or provider errors can be.
  • Cache Laravel config after changing environment values, and clear it during deployment with php artisan config:clear or rebuild caches deliberately.
  • For extension, keep the package behind your own SmsSender contract so it can be replaced by another Jiguang SDK, a direct HTTP client, or a different provider without changing domain 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.
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel
draftsmaninc/draftsman
square-bit/laravel-volition
himito/laravel-mailman
htinlynn/genius-helper
maco-studios/hephaestus