Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Sms Advert

LicenseStablePHPIssuesMerge Requests

Description

Sms Advert integrates Laravel Enso with the SMS Advert API.

The package stores provider settings, exposes a callback endpoint for delivery updates, and provides an action object for dispatching SMS messages with optional outbound filters and automatic callback registration.

It is intended for sale-channel and commercial flows that need SMS delivery notifications or transactional outbound messages through the Sms Advert provider.

Installation

Install the package:

composer require laravel-enso/sms-advert

Run the package migrations:

php artisan migrate

Features

  • Settings screen for base URL, auth token, test phone, and enablement.
  • Callback endpoint for delivery-status updates.
  • Sms action wrapper that applies filters and injects the callback URL.
  • Message model and dynamic relation support for linked SMS messages.

Usage

Main route groups:

  • integrations.smsAdvert.settings.*
  • integrations.smsAdvert.callbacks.*

Typical send flow:

use LaravelEnso\SmsAdvert\Actions\Sms;

(new Sms($phone, $message))
    ->filters($filters)
    ->handle();

The action resolves the provider endpoint, sends shortTextMessage, and always includes the callback route so delivery updates can be persisted locally.

API

HTTP routes

  • GET api/integrations/smsAdvert/settings
  • PATCH api/integrations/smsAdvert/settings/{settings}
  • POST api/integrations/smsAdvert/callbacks/sms

Action

  • LaravelEnso\\SmsAdvert\\Actions\\Sms

Behavior:

  • sends a short or long SMS payload
  • applies outbound filter objects
  • appends the local callback URL

Depends On

Required Enso packages:

  • laravel-enso/api ↗
  • laravel-enso/core ↗
  • laravel-enso/enums ↗
  • laravel-enso/helpers ↗
  • laravel-enso/sale-channels ↗

Companion frontend package:

  • @enso-ui/sms-advert ↗
Edit this page on GitHub
Last Updated: 4/20/2026, 6:08:35 PM
Prev
Smart Bill
Next
Stripe