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 Nextsms

Laravel Nextsms Laravel Package

omakei/laravel-nextsms

omakei/laravel-nextsms is a Laravel package for sending SMS through NextSMS. Configure your credentials, send single or bulk messages via a clean API, and add SMS delivery to Laravel notifications, alerts, OTP flows, and other workflows without extra boilerplate.

View on GitHub
Deep Wiki
Context7

A Laravel package to send SMS using NextSMS API

Frequently asked questions about Laravel Nextsms
What is omakei/laravel-nextsms used for?
It is a Laravel package for sending SMS messages through the NextSMS API. You configure your NextSMS credentials once, then send single or bulk messages from application code, alerts, OTP flows, or notification-style workflows. The package exists to remove the boilerplate of talking to the NextSMS HTTP API directly. It is Laravel-coupled rather than framework-agnostic, so it registers into the framework's service container and configuration layer.
How do I install omakei/laravel-nextsms in a Laravel app?
Install it with Composer by requiring omakei/laravel-nextsms in your project. Like most Laravel packages it should be discovered automatically, and you then publish its configuration file so your credentials can be set per environment. Confirm the install command and any publish tag against the repository README, since published assets vary between versions. After publishing, clear your config cache so the new settings are picked up.
How do I configure NextSMS credentials and the sender ID?
Credentials are provided through the package configuration file, which typically reads values from your .env file so they are not committed to version control. You will usually set an API token or username/password pair plus a sender ID that identifies your brand to recipients. Because NextSMS is a regional gateway, the sender ID must be one approved on your NextSMS account or messages may be rejected. Keep separate credentials per environment so staging traffic never reaches real customers.
How do I send a single SMS message with this package?
The package exposes a clean sending API so you can dispatch one message by supplying the recipient number and message body. The exact method signature is version-specific, so check the README for the current call style before wiring it in. Wrap the call in a small service class or action so you can swap providers later without touching every call site. Always validate and normalise phone numbers to the international format NextSMS expects before sending.
Does omakei/laravel-nextsms support bulk SMS sending?
Yes, the package is described as supporting both single and bulk message sending through its API. Bulk sending is typically a matter of passing a collection of recipients or messages in one request rather than looping over single sends. Check the README for payload limits and how per-recipient results are returned, because gateway responses usually report success and failure per number. For large campaigns, chunk the recipient list and queue the work so a slow API response does not block a web request.
Can I use it for OTP codes and Laravel notifications?
The package is intended to slot into notification, alert, and OTP workflows without extra boilerplate. Verify in the source whether a dedicated notification channel class ships with it, or whether you write a thin wrapper around the send call inside your own notification class. For OTPs, generate the code yourself, store it with a short expiry, and never send the same code twice. Also consider queueing OTP messages so a slow gateway response does not delay your login flow.
Which Laravel and PHP versions does omakei/laravel-nextsms support?
The published release history includes a 2.0.0 release note stating it adds Laravel 9 compatibility, which implies the package tracks Laravel majors rather than supporting every framework generation. That note does not make clear whether Laravel 8 is still supported alongside 9, or whether 9 is the only supported version. Read the composer.json require constraints and the CI matrix in the repository before adopting, and check whether Laravel 10, 11, or 12 appears on the roadmap. If your application is already on a newer major, confirm support explicitly rather than assuming it.
How do I test SMS sending without calling the NextSMS API?
The safest approach is to fake the underlying HTTP layer so no real request leaves your test suite. If the package does not ship its own fake or assertion helpers, bind a stub implementation of the sender behind an interface in your test container. Then assert that your notification or service dispatched the expected recipient and message body. Always keep real credentials out of the testing environment so a misconfigured test cannot send live messages.
What should I plan for before using this package in production?
Queue the send calls so gateway latency and outages do not block user-facing requests, and add retries with backoff for transient failures. Log the gateway response for every message so you can reconcile delivery reports and investigate failed sends. Handle failures explicitly, since an accepted API request does not guarantee the handset received the message. Also watch for duplicate sends when retrying, and keep an eye on your NextSMS account balance and rate limits.
Is omakei/laravel-nextsms actively maintained, and what if I need an alternative?
Maintenance signals are thin: the public release history shows a 2.0.0 entry whose only note is added Laravel 9 compatibility, which trails current Laravel majors. Before committing, check the last commit date, open issues, and whether newer Laravel versions are on the roadmap. If the support cadence does not match your upgrade plans, wrap the send call behind your own interface so you can swap to another NextSMS client or a different gateway with minimal churn. A thin abstraction layer is cheap insurance for a single-maintainer 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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
cgv/localized-resource