Download the PHP package padosoft/laravel-rebel-channels without Composer

On this page you can find all versions of the php package padosoft/laravel-rebel-channels. 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 laravel-rebel-channels

Laravel Rebel — Channels

Official documentation: https://doc.laravel-rebel.padosoft.com

One safe, fault-tolerant pipe for phone verifications (SMS / WhatsApp / voice). You ask "verify this number"; Rebel Channels runs it through a bot gate, anti toll-fraud/IRSF defences, a per-number rate limit, and provider fallback — then audits every decision (number always HMAC'd). It is provider-agnostic: plug in laravel-rebel-channel-twilio (or your own). Part of the padosoft/laravel-rebel-* suite.

Laravel 12|13 PHP 8.3+ PHPStan max Pest 4 anti IRSF MIT


Table of contents


What it is (and what it is not)

It is the routing + defence layer for sending one-time phone verifications. It does not talk to Twilio (or any vendor) itself — it defines the contracts and the guarded flow, and delegates the actual send to a provider package such as laravel-rebel-channel-twilio.

It is not an OTP generator (that's the provider's job, e.g. Twilio Verify), and it is not tied to one vendor — register several providers and it will fall back between them.

Depends on padosoft/laravel-rebel-core.


Quick glossary (one minute)

Term In plain words
Verification "Send a code to this number and let me check what the user typed."
Provider The vendor that actually sends/checks the code (e.g. Twilio Verify).
Channel The medium: sms, whatsapp, voice.
Fallback If provider A is down, automatically try provider B.
IRSF / toll-fraud International Revenue Share Fraud: attackers pump OTP traffic toward premium-rate numbers to cash in. Expensive if undefended.
Geo allowlist "Only send to these country prefixes" — the single most effective IRSF defence.
Per-prefix cap A velocity circuit breaker per number prefix, so a sudden spike toward one range trips.
Bot gate A check (reCAPTCHA/Turnstile…) that a human, not a script, triggered the send.

Why Rebel Channels — the moats

★ What In short
★★★ IRSF / toll-fraud defences built in Geo allowlist, prefix blocklist, and a per-prefix velocity circuit breaker — the stuff that saves real money.
★★★ Provider fallback Register Twilio + a backup; an outage on one silently rolls over to the next.
★★★ Tamper-evident references The check() handle is HMAC-signed and bound to the phone — no provider/channel injection, no cross-user replay.
★★ Bot gate + per-number rate limit Two more layers before a single euro is spent on a send.
★★ Audited, privacy-first Every decision is recorded with the number HMAC'd (never in clear).
★★ Vendor-agnostic Swap or combine providers without touching your app code.
★ Safe defaults Ships a cache-backed rate limiter and a no-op bot gate so it just works, then hardens as you configure it.

Rebel Channels vs the alternatives

Sending a verification SMS, compared:

Capability Rebel Channels Shopify Twilio Verify SDK (direct) Hand-rolled SMS + OTP
Send/check a code ✅ ✅ ✅ ✅
Provider fallback on outage ✅ ❌ ❌ ❌
Geo allowlist (IRSF) ✅ ❌ ➖ (manual in console) ❌
Per-prefix velocity circuit breaker ✅ ❌ ❌ ❌
Per-number rate limit / cooldown ✅ ➖ ➖ ❌
Bot gate before spending ✅ ➖ ❌ ❌
Reference signed + phone-bound (anti replay/injection) ✅ ❌ ❌ ❌
Unified audit trail, number HMAC'd ✅ ❌ ❌ ❌
Vendor-agnostic / swappable ✅ ❌ ❌ ➖

Legend: ✅ built-in · ➖ partial / manual / hosted-only · ❌ not available. Twilio Verify is a great provider — Rebel Channels wraps it (and others) with the routing, fraud and audit layer your app would otherwise have to build and maintain itself. Shopify is a closed, hosted commerce platform: it sends its own customer OTPs but exposes none of these low-level primitives to you — you can't self-host it, swap providers, or configure its fraud controls, so it's a black box for this use case.


How it works (step by step)


Installation (junior-proof)

Prerequisites: Laravel 12 or 13, PHP 8.3+, and padosoft/laravel-rebel-core. You also want at least one provider, e.g. padosoft/laravel-rebel-channel-twilio.

Then register a provider (the Twilio package does this for you) and you're ready:


Configuration (every option)

File config/rebel-channels.php:

Key Default What it does
providers [] Provider keys to try, in fallback order. Empty = every registered provider that supports the channel.
rate_limit.max_per_window 5 Max verification sends per phone+channel within the window.
rate_limit.window_seconds 3600 The rate-limit window length.
fraud.allowed_prefixes [] If non-empty, ONLY numbers starting with one of these E.164 prefixes are allowed (geo allowlist).
fraud.blocked_prefixes [] Numbers starting with one of these are always blocked.
fraud.per_prefix.length 3 How many leading chars of the E.164 number form the velocity bucket (3 → +39).
fraud.per_prefix.max_per_window 0 Per-prefix send cap (0 disables the circuit breaker).
fraud.per_prefix.window_seconds 3600 The per-prefix window length.

To actually gate bots, bind your own implementation of the core BotProtection contract (reCAPTCHA/Turnstile…); otherwise a permissive no-op default is used.


Usage examples

1. Start + check a verification

2. WhatsApp with SMS fallback — list both providers; the router rolls over:

3. Lock down to your markets (kills most IRSF)

4. Pass a bot token (verified by your bound BotProtection):

5. Inspect the audit trail

6. IAM JIT elevation notifications (laravel-iam-agents ≥ 1.1) — when an AI agent asks for scopes outside its delegation grant, nudge the delegating human on their own channels, with multi-channel fallback. The message informs only (secret-free, configurable template): approval always happens through the in-app step-up re-consent, never by replying to a message. Total delivery failure throws, so iam-agents audits notify_failed and the request stays approvable in self-service.

Every hop is audited with the number HMAC'd: channel.elevation.notified / channel_failed / notify_failed / no_recipient.


.env.example


Security notes


🔋 Vibe coding with batteries included

This package ships AI batteries — so you (and your AI agent) can extend it correctly on the first try:

Open the repo in your AI editor and just start — the rules, guardrails and extension recipes come with it. PRs that follow the shipped CLAUDE.md pass CI (PHPStan max + Pest + Pint) and review the first time around.

Testing & License

License: MIT — see padosoft/laravel-rebel suite.


All versions of laravel-rebel-channels with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
spatie/laravel-package-tools Version ^1.92
padosoft/laravel-rebel-core Version ^0.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 padosoft/laravel-rebel-channels contains the following files

Loading the files please wait ...