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

Aliyun Sms Laravel Package

mrgoon/aliyun-sms

A Laravel integration for Aliyun (Alibaba Cloud) SMS that simplifies sending verification codes, notifications, and transactional messages. Configure your credentials and send SMS through a clean, familiar Laravel API with minimal setup.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • China-market reachability: If your roadmap includes mainland-China users, SMS is not optional — it's the primary OTP and transactional channel. This package is a thin wrapper over Aliyun's SendSms/QuerySendDetails, which is enough to answer "can we deliver an OTP to a +86 number this quarter?" without committing to a vendor SDK migration.
  • Build vs. buy for the SMS layer: The realistic decision is not "this package vs. nothing," it's "thin community wrapper vs. official Alibaba Cloud SDK vs. a maintained Laravel notification channel." Treat this package as the cheapest possible spike to validate the integration shape (credentials, signature, template code, region endpoint) before you invest in the durable option.
  • Feature scoping for auth flows: Aliyun SMS is template-bound — every message must map to a pre-approved template with declared variables. That constraint should shape product specs early: fixed-position verification codes, no free-text order notes, and separate templates per locale/use case. Discovering this during build instead of planning is a common source of slipped launches.
  • Use-case fit: Reasonable for internal tools, back-office notifications, low-volume OTP on an MVP, or a single-purpose service that only needs "send a code." Poor foundation for anything that becomes a growth or reliability surface.
  • Compliance scoping: Aliyun requires template registration and, for marketing SMS, sender/signature approval. This package does none of that lifecycle management, so a PM should plan a manual ops runbook (who registers templates, who rotates signatures, who handles carrier rejections) regardless of which library wins.
  • Roadmap signal, not roadmap commitment: With 82 stars, zero dependents, and a last release in October 2017, this is a dead-end dependency. It is evidence that the problem is solved cheaply, not evidence that this is the solution to standardize on.

When to Consider This Package

Consider only if all of the following hold:

  • You are on a legacy Laravel version (roughly 5.x) or a non-Laravel PHP app, and this package's composer.json constraints actually resolve in your lockfile — verify this first; it is the most likely hard blocker.
  • You need exactly two operations: send a templated SMS and query delivery status. No batch send, no scheduling, no inbound/reply handling, no multi-vendor failover.
  • Volume is low and non-critical — a failed send is a support ticket, not a revenue outage.
  • You accept that you own the code: it will not receive security patches, PHP 8.x compatibility fixes, or API-version updates.

Look elsewhere if any of the following are true:

  • You are on Laravel 9/10/11 or PHP 8.1+. A 2017-era wrapper almost certainly pins old illuminate/support and PHP constraints; forcing it in means --ignore-platform-reqs hacks that will break at the next upgrade. This alone disqualifies it for most current projects.
  • SMS is on the critical path (login, payments, 2FA). You need retry/backoff, queue integration, idempotency, per-number rate limiting, and error-code mapping to actionable user states. This wrapper provides none of that.
  • You need observability. No structured logging, metrics, or delivery-receipt surfacing means you cannot answer "what fraction of OTPs landed?" in production.
  • You want a supported upgrade path. Prefer the official alibabacloud/dysmsapi-20170525 SDK (vendor-maintained, current signing, all API operations) or a maintained Laravel notification channel that wraps it and gives you Notification-based, queue-aware sending.
  • You are multi-vendor or multi-region. Twilio/Sinch/Aliyun side-by-side needs an abstraction layer, not a single-vendor shim.

Practical guidance: spend the half-day spike on the official Aliyun SDK instead. The wrapper's entire value is saving you ~50 lines of signature and request-assembly code — not worth an unsupported dependency in the auth path.

How to Pitch It (Stakeholders)

To executives (30 seconds): We evaluated a community PHP library for Alibaba Cloud SMS, which is the standard way to reach Chinese mobile numbers for verification codes and order notifications. It works for a quick proof of concept but has been unmaintained since 2017, has no downstream users in the ecosystem, and will not survive our framework upgrade path. Recommendation: use it at most for a one-week feasibility spike; budget roughly 2–3 engineer-days to adopt Alibaba Cloud's officially supported SDK instead, which carries no vendor risk and covers the same use cases plus delivery reporting. The real cost here isn't code — it's template registration and compliance ops, which we pay either way.

To engineering (the ask): Treat this repo as reference documentation, not a dependency. Validate with it that our Aliyun account, signature, and template codes work end-to-end against SendSms. Then build the production path on alibabacloud/dysmsapi-20170525 behind a small internal interface (SmsSender::send(template, params, to)), so we can add a second provider or swap SDKs without touching product code. Wrap it in a queued job with retries, exponential backoff, per-phone-number rate limiting, and error-code translation to user-facing states. Log every send with a message ID so support can trace delivery. Do not let this become the third unmaintained vendor shim in the codebase — if we adopt it, we own it, and nobody is going to own it.

Bottom line: low opportunity score, zero dependents, seven-year-old release — the package is a useful artifact for understanding the Aliyun SMS contract and a poor choice for production. Approve a spike, reject the dependency.

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.
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
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log