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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

  1. 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.
  2. Writes those to a local outbox when the request or job ends, never inside an open transaction.
  3. 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

PHP Build Version
Package Version
Requires php Version ^8.3
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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mizbanha/sms-cloud-client contains the following files

Loading the files please wait ...