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
Qcloudsms Php

Qcloudsms Php Laravel Package

qcloudsms/qcloudsms_php

A PHP SDK for Tencent Cloud SMS (Qcloud SMS). Send single or bulk SMS messages, manage signatures and templates, and integrate Tencent Cloud's SMS API into Laravel or any PHP project via a simple, lightweight client.

Deep Wiki
Context7

qcloudsms sdk for php

Frequently asked questions about Qcloudsms Php
What is qcloudsms/qcloudsms_php used for?
It is a lightweight PHP SDK for Tencent Cloud SMS (Qcloud SMS) that lets you send single or bulk SMS messages and manage signatures and templates. You can use it in Laravel or any plain PHP project by calling the client directly with your Tencent Cloud credentials. Most Laravel teams wrap it in a service class or notification channel instead of calling it from controllers.
How do I install qcloudsms/qcloudsms_php with Composer in a Laravel app?
Install it with composer require qcloudsms/qcloudsms_php and confirm the PHP and Guzzle/cURL constraints match your project. Because the package is not Laravel-native, do not assume auto-discovery, a facade, or publishable config. Register a singleton binding in a service provider and keep credentials in config/services.php backed by environment variables.
Does this package support Laravel 10, 11, or 12 and PHP 8?
Laravel version support is not guaranteed because the SDK is framework-agnostic and maintenance is limited. Check the package's composer.json for PHP version constraints and PHP 8 typing before adopting it. Add a small CI matrix covering your target PHP and Laravel versions, and be prepared to fork the SDK if compatibility gaps appear.
How do I configure Tencent Cloud SMS credentials in Laravel?
Store the app ID, app key, region, and default signature in environment variables and expose them through config/services.php under a dedicated key. Inject that config into a wrapper service or a manually registered singleton, and never hard-code secrets in the SDK calls. Combine this with Laravel's config caching and secret management so credentials do not leak into domain code.
Can I send SMS through Laravel notifications or a queue with this SDK?
Yes, but you need to build the integration yourself, for example a custom notification channel that resolves a TencentSmsSender adapter. Wrap non-critical sends in queued jobs so timeouts and retries do not block requests, and keep OTP or authentication flows synchronous when latency matters. Define an application-level SmsSender interface so the vendor SDK stays isolated behind your abstraction.
Does qcloudsms_php support bulk SMS, template SMS, and delivery reports?
The SDK covers Tencent Cloud SMS basics such as single and bulk sending plus signature and template management. Confirm against your account's API version whether status callbacks and delivery reports are exposed the way you need. If a feature is missing, extend or fork the client and keep provider-specific response handling inside your adapter.
How should I handle errors, retries, and rate limits with Tencent Cloud SMS?
The SDK offers limited error modeling, so parse responses into your own typed exceptions and log Tencent request IDs for observability. Implement retry with backoff and idempotency in your application layer rather than relying on the SDK, and respect Tencent account quotas and rate limits. Validate template IDs and parameters before calling the API to avoid costly failed sends.
Is qcloudsms/qcloudsms_php safe and actively maintained for production use?
The package is MIT licensed, which is favorable, but it has a small community, an unverified repository, and signs of limited active maintenance. Audit the source before adding it to your dependency chain, pin the version in composer.lock, and plan for a possible internal fork. SMS is customer-facing and cost-sensitive, so keep credential handling, retries, and validation owned by your application.
How do I test Tencent Cloud SMS integration without sending real messages?
Bind a fake SmsSender implementation in your test suite and assert that your adapter is called with the expected template ID and parameters. Keep a thin boundary around the SDK so unit tests never hit Tencent's API, and run a limited number of sandbox or non-production phone number checks in staging. Add a compatibility test matrix so dependency upgrades do not break sending behavior.
What are alternatives to qcloudsms_php for Tencent Cloud SMS in Laravel?
Alternatives include newer community SDKs, the official Tencent Cloud PHP SDK, or a thin custom HTTP client using Guzzle against the SMS API. You could also abstract the provider behind an SmsSender interface and swap between Tencent, Aliyun, or another gateway with a feature flag. Because provider lock-in is a real risk, create the abstraction before integrating this package.
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.
abbasudo/artisan-route
mirvan/ippanel
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package