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

    • Action Logger
    • Addresses
    • Alfa Sign
    • Algolia
    • Algolia Webshop
    • API
    • Audit
    • Avatars
    • BTRL (Banca Transilvania iPay)
    • 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
    • Emag Checker
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • System Notifications
    • Localisation
    • Lockable Models
    • Logs
    • Mails
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Projects
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Send SMS (Sendsms.ro)
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Sunrise Sunset
    • 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

Send SMS (Sendsms.ro)

LicenseStablePHP

Description

Send SMS integrates the Enso SMS notification flows with the Sendsms.ro API.

The package stores the remote credentials, exposes the settings endpoints used by the admin UI, and provides a small service/action/endpoint chain for sending messages through the Sendsms.ro JSON API.

It is intended for private deployments that need Sendsms.ro as a text messaging provider.

Installation

This is a proprietary package distributed through the private Enso registry or a private path repository.

Run the package migrations after installation:

php artisan migrate

Then configure the integration from the Send SMS settings screen. The settings record stores:

  • API endpoint URL
  • account credentials (username, password)
  • enabled flag

Optional config publish:

php artisan vendor:publish --tag=send-sms-config

Config file: config/enso/send-sms.php

return [
    'settingsId' => env('SENDSMS_SETTINGS_ID', 1),
];

Features

  • Settings API for enabling the integration and storing credentials securely with encrypted username and password casts.
  • Sms service and action classes for sending messages through the native Enso API client flow.
  • Endpoint abstraction that builds Sendsms.ro requests with the configured credentials and default JSON URL fallback.
  • Built-in validation for phone numbers, requiring a leading + and numeric digits only.
  • Specific API and phone-number exception handling.

Usage

Enable the integration from the settings form before using the SMS flow.

To send an SMS message programmatically, you can simply use the exposed service class:

use LaravelEnso\SendSms\Services\Sms;

$phone = '+407XXYYYZZZ';
$message = 'Test message via Sendsms.ro API';

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

The package exposes the following core service classes:

  • LaravelEnso\SendSms\Services\Sms
  • LaravelEnso\SendSms\Actions\Sms
  • LaravelEnso\SendSms\Endpoints\Sms

The endpoint uses the configured URL when present and otherwise falls back to:

https://api.sendsms.ro/json

API

HTTP routes

Settings:

  • GET api/integrations/sendSms/settings
  • PATCH api/integrations/sendSms/settings/{setting}

Core classes

ClassDescription
LaravelEnso\SendSms\Models\SettingsSingleton settings model backed by send_sms_settings
LaravelEnso\SendSms\Services\SmsValidates the phone number and dispatches the send action
LaravelEnso\SendSms\Actions\SmsEnso API action for the SMS send request
LaravelEnso\SendSms\Endpoints\SmsBuilds the Sendsms.ro request body and destination URL
LaravelEnso\SendSms\Exceptions\PhoneNumberValidation exceptions for malformed phone numbers

Depends On

Required Enso packages:

  • laravel-enso/api ↗
  • laravel-enso/helpers for encrypted settings casts

Companion frontend package:

  • @enso-ui/send-sms
Edit this page on GitHub
Last Updated: 5/26/2026, 8:41:40 AM
Prev
Select
Next
Sentry