com.suhayl/message_queueing

There is no license information available for the latest version (v1.0.1) of this package.

Message Queueing system to store messages in SQLite DB.

v1.0.1 2020-02-05 02:57 UTC

This package is auto-updated.

Last update: 2024-05-05 13:14:09 UTC


README

Brief

System to queue messages.

Objectives:

  1. HTTP POST endpoint OR CLI command to input an SMS message into the queue
  2. HTTP GET endpoint OR CLI command to consume an SMS message from the queue in JSON format. With consuming I mean: read SMS from queue and delete it, so that it won't be consumed by the next reader.
  3. HTTP GET endpoint OR CLI command to view all messages in the queue in JSON format
  4. HTML page to view all messages in the queue

Requirements

  • Composer
  • pdosqlite extension

Setup

  1. Clone files in web server directory and run composer install
  2. Create folder 'db' in root directory and load setup.php to initialize db file (Optionally add parameter dummy_data=1 to load dummy data into database)
  3. Load index.php for HTML view of all messages with HTML form to queue new messages
  4. Load consume-message.php to load next message in queue and display in JSON, deleting the message
  5. Load read-messages.php to display all messages in JSON
  6. Submit POST data to queue-message.php to queue up message in DB.