Download the PHP package mizbanha/sms-cloud-client without Composer
On this page you can find all versions of the php package mizbanha/sms-cloud-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mizbanha/sms-cloud-client
More information about mizbanha/sms-cloud-client
Files in mizbanha/sms-cloud-client
Package sms-cloud-client
Short Description Optional, fail-open telemetry client that reports mizbanha/laravel-sms operational metrics to Mizbanha SMS Cloud. Never on the sending path.
License MIT
Homepage https://mizbanha.com
Informations about the package sms-cloud-client
Mizbanha SMS Cloud client
Reports operational metrics from mizbanha/laravel-sms
to Mizbanha SMS Cloud, so you can watch many
applications, environments and providers from one dashboard.
⚠️ This package cannot affect your SMS. It never sends a message, never sits between your application and your provider, and never delays or fails a send. If SMS Cloud is unreachable, slow, rate limiting you, or refusing your credential, your application sends exactly as it does without this package installed.
What it does
- Listens to Core's events (
AttemptRecorded,MessageSettled,CircuitStateChanged,DeliveryChecked) and appends a small array to memory — no query, no cache call, no HTTP inside a send. - Writes those to a local outbox when the request or job ends, never inside an open transaction.
- Once a minute, in the background, aggregates closed minutes into a batch, publishes it, and sends a heartbeat.
What is sent
Counts per minute (attempts, accepted, rejected, uncertain, messages by status, retries), failure kinds, failovers (from → to, reason, whether the fallback was accepted), a latency histogram, delivery lookup results, circuit transitions, package versions, buffer health and SHA-256 digests of your gateway/template configuration.
What is never sent
Recipients · message bodies · template variables · OTP codes · template keys · sender lines · gateway credentials · provider response text · message or attempt ids · hostnames · IPs. The payload is built from a fixed whitelist, and the test suite asserts it on real request bodies.
Gateway keys and driver names are sent, so the dashboard can name what is
failing. Set SMS_CLOUD_HASH_GATEWAY_KEYS=true to send stable digests instead.
Setup
Make sure the scheduler runs (php artisan schedule:run every minute). That is
the whole runtime requirement; the package registers sms-cloud:run itself, in
the background, without overlapping.
Prefer a queue? SMS_CLOUD_PUBLISH_MODE=queue and SMS_CLOUD_QUEUE=sms-cloud
(never your SMS queue). The job has one try and a short timeout.
Without a token, or with SMS_CLOUD_ENABLED=false, the package registers no
listener, no terminating callback and no scheduled task.
Commands
Behaviour when SMS Cloud misbehaves
| Response | What happens |
|---|---|
202 |
the local copy is deleted |
network error / timeout / 5xx |
kept; all publishing backs off 30 s → 30 min with jitter |
429 |
kept; paused for Retry-After |
401 / 403 / environment mismatch |
kept; paused 5 minutes so an operator can fix the token or APP_ENV |
400 / 413 / 422 / duplicate-id conflict |
that batch is dropped and counted — it can never be accepted |
Retries reuse the same batch_id and sequence, so the Cloud answers duplicate
and never counts a batch twice.
Bounded by design
| Limit | Default |
|---|---|
| Events buffered in memory per process | 5 000 |
| Rows in the local outbox | 200 000 |
| Batches waiting | 5 000 |
| Age of a waiting batch | 72 hours |
| Batches sent per run · seconds per run | 20 · 30 |
Past a limit the oldest telemetry is dropped and counted, and the counts are reported in the next heartbeat, so a long outage can never grow your database or your memory without bound.
Requirements
PHP 8.3+ · Laravel 13 · mizbanha/laravel-sms ^0.1.1
The outbox is two ordinary tables on your default connection (or another one, if
you set sms-cloud.buffer.connection). The suite runs against SQLite, MySQL 8.4
and PostgreSQL 17, because that is where it will actually live.
Tests
Core comes from Packagist like any other dependency, which is what CI does too.
To work against an unreleased Core instead, ./scripts/use-local-core.sh ../laravel-sms points the manifest at a local checkout — for development only;
that override must never be committed, and a test enforces it.
MIT. © Mizbanha — deliberately open, so anyone can audit what leaves their server.
All versions of sms-cloud-client with dependencies
illuminate/console Version ^13.0
illuminate/contracts Version ^13.0
illuminate/database Version ^13.0
illuminate/http Version ^13.0
illuminate/queue Version ^13.0
illuminate/support Version ^13.0
mizbanha/laravel-sms Version ^0.1.1