Bolt CMS

Send SMS and perform text-to-speech calls within Bolt CMS.

Bolt CMS is an open-source content management system based on PHP, specifically the popular Symfony framework. The integrated interface in the form of REST and GraphQL makes it particularly popular among web developers, as it is extremely easy and effective to extend.

Installation

  1. 1

    Package Installation

    Install the package via the PHP package manager composer: composer require seven.io/bolt

  2. 2

    Adding a Content Type for the Mobile Phone Field

     people:
           # ...
           mobile:
             type: text
             variant: inline
           # ...
    
  3. 3

    Configuration

    Go to /bolt/file-edit/config?file=/extensions/seven-bolt.yaml and fill in apiKey. Alternatively, adjust mappings, where each key represents a content type and the corresponding value is a mobile phone field.

Usage

Check the widget in the admin dashboard. Click on one of the buttons to go to an action page.

Sending SMS

Send SMS to all your content types that have a value defined for the mobile phone field.

Making Text-to-Speech Calls

Call each content type that has a value defined for the mobile phone field and read the specified text aloud.

Message Placeholders

Any field of a content type can be used in the text, surrounded by {{<fieldname>}} – for example, {{name}} will resolve to the name field.

Ensure that the value has implemented the .toString() method, as currently no type checking or conversion is implemented.

Last updated: 5 days ago