Skip to content

TolgaYigit/sqs-message-api

Repository files navigation

Sqs Message Api

Simple SQS message API which sends 1k random messages to SQS and receives them.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Make sure your server meets the following requirements:

PHP >= 7.0
OpenSSL PHP Extension
PDO PHP Extension
Mbstring PHP Extension

Installing

First, clone the repo:

$ git clone https://github.com/TolgaYigit/sqs-message-api.git

Install dependencies

$ cd sqs-message-api
$ composer install

Configure the Environment

Create .env file:

$ cat .env.example > .env

Enter your AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION credentials and desired SQS_QUEUE_URL to your .env file.

If you want you can edit database name, database username and database password in your .env file located in root folder. NOTE: This project does not use database.

API Routes

HTTP Method Path Method Desciption
GET /all getAllMessages Gets all messages from SQS
GET /status getMessageStatus Gets approximate message count
POST /send sendMessages Creates and sends 1k messages to SQS

Built With

License

The Lumen framework is an open-sourced software licensed under the MIT license

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages