Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bariseser/aws_sqs
Aws Sqs PHP Wrapper
https://github.com/bariseser/aws_sqs
Last synced: 3 days ago
JSON representation
Aws Sqs PHP Wrapper
- Host: GitHub
- URL: https://github.com/bariseser/aws_sqs
- Owner: bariseser
- License: mit
- Created: 2022-04-18T10:11:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-04-18T13:41:57.000Z (over 2 years ago)
- Last Synced: 2024-05-14T11:21:26.115Z (6 months ago)
- Language: PHP
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP AWS SQS Wrapper
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/bariseser/aws_sqs/issues)
[![Latest Stable Version](https://poser.pugx.org/bariseser/sqs/v/stable)](https://packagist.org/packages/bariseser/sqs)
[![Total Downloads](https://poser.pugx.org/bariseser/sqs/downloads)](https://packagist.org/packages/bariseser/sqs)
[![License](https://poser.pugx.org/bariseser/sqs/license)](https://packagist.org/packages/bariseser/sqs)## Installation
Aws Sqs Wrapper installation is very simple. Open the terminal and run this command
`composer require bariseser/sqs`
## Consume Message
```php
$consumer = (new SqsConsumer())
->setQueueUrl("http://localhost:4566/000000000000/client_api.fifo");while (true) {
$messages = $consumer->messages();
if (!empty($messages->get('Messages'))) {
foreach ($messages->get('Messages') as $message) {
echo $message['Body'].PHP_EOL;
}
} else {
echo "No messages in queue". PHP_EOL;
}
}
```## Produce Message
```php
$producer = (new SqsConsumer())
->setQueueUrl("http://localhost:4566/000000000000/client_api.fifo");
$producer->setMessageBody(json_encode(['title' => "baris eser", 'id' => 12345]))->publish();
```Getting help / Contact
---
* [email protected]
* [Issue](https://github.com/bariseser/php-password-hash/issues)Contributing
---
1 - Fork the Project2 - Ensure you have Composer installed (see Composer Download Instructions)
3 - Install Development Dependencies
```bash
composer install
```4 - Run the Test Suite
```bash
vendor/bin/phpunit
```5 - Send us a Pull Request