PHPackages                             geekcom/felicio - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. geekcom/felicio

ActiveLibrary[Queues &amp; Workers](/categories/queues)

geekcom/felicio
===============

A simple lib to connect PHP with AWS SQS

2.5.2(5y ago)1083[3 PRs](https://github.com/geekcom/felicio/pulls)MITPHPPHP &gt;=7.4

Since Aug 29Pushed 2y ago2 watchersCompare

[ Source](https://github.com/geekcom/felicio)[ Packagist](https://packagist.org/packages/geekcom/felicio)[ Docs](https://github.com/geekcom/felicio)[ RSS](/packages/geekcom-felicio/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (10)Dependencies (5)Versions (15)Used By (0)

Felicio
=======

[](#felicio)

*A simple AWS SQS Messages with PHP*

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1d6e3ac8b76f851ffc003b160c3bab18032c8dc869e8bfda3a6b62969e075125/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6765656b636f6d2f66656c6963696f2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/geekcom/felicio/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/486dc43fc6d93e3e9e3603168a3a32f42f299aeb8df2f32abba839af4be769e8/68747470733a2f2f706f7365722e707567782e6f72672f6765656b636f6d2f66656c6963696f2f762f737461626c65)](https://packagist.org/packages/geekcom/felicio)[![Minimum PHP Version](https://camo.githubusercontent.com/59c540f407b20fe8daae2085276dd8f8268d94e5051217571d164084a62198bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e342d626c75652e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![License](https://camo.githubusercontent.com/601ab335f527af03ed9eff7d59bac7a92e7ec2ba218fdabbb595bd30e3332c71/68747470733a2f2f706f7365722e707567782e6f72672f6765656b636f6d2f66656c6963696f2f6c6963656e7365)](https://packagist.org/packages/geekcom/felicio)

### About Felicio and SQS

[](#about-felicio-and-sqs)

Felicio is a simple library to manipulate [AWS SQS Messages](https://aws.amazon.com/pt/sqs/).

- Simple;
- Configurable;
- Testable;
- Open source.

[Amazon Simple Queue Service (SQS)](https://aws.amazon.com/pt/sqs/) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications.

### Installation

[](#installation)

Install [Composer](http://getcomposer.org) if you don't have it.

```
composer require geekcom/felicio

```

Or in your file'composer.json' add:

```
{
    "require": {
        "geekcom/felicio": "^2.5.0"
    }
}
```

And the just run:

```
composer install

```

and thats it.

---

### Configure

[](#configure)

Rename `.felicio.example` to `.felicio` and fill in the correct information about your AWS SQS account.

```
AWS_SQS_ACCESS_KEY=
AWS_SQS_SECRET_KEY=
AWS_SQS_REGION=
AWS_SQS_API_VERSION=latest

```

### Send a message

[](#send-a-message)

```
require __DIR__ . '/vendor/autoload.php';

use Felicio\Felicio;

$felicioDotFile = __DIR__ . '/.felicio';

$felicio = new Felicio($felicioDotFile);

$params = [
    'QueueUrl' => 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',
    'MessageBody' => 'test message'
];

$felicio->sendMessage($params);
```

### Receive a message

[](#receive-a-message)

```
require __DIR__ . '/vendor/autoload.php';

use Felicio\Felicio;

$felicioDotFile = __DIR__ . '/.felicio';

$felicio = new Felicio($felicioDotFile);

$params = [
    'AttributeNames' => ['SentTimestamp'],
    'MaxNumberOfMessages' => 1,
    'MessageAttributeNames' => ['All'],
    'QueueUrl' => 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',
    'WaitTimeSeconds' => 0,
];

$message = $felicio->receiveMessage($params);

var_dump($message);
```

### Delete a message

[](#delete-a-message)

```
require __DIR__ . '/vendor/autoload.php';

use Felicio\Felicio;

$felicioDotFile = __DIR__ . '/.felicio';

$felicio = new Felicio($felicioDotFile);

$params = [
    'QueueUrl' => 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',
    'ReceiptHandle' => '', // required
];

$felicio->deleteMessage($params);
```

### Count messages

[](#count-messages)

```
require __DIR__ . '/vendor/autoload.php';

use Felicio\Felicio;

$felicioDotFile = __DIR__ . '/.felicio';

$felicio = new Felicio($felicioDotFile);

$queueUrl = 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue';

$messages = $felicio->countMessages($queueUrl);

var_dump($messages);
```

### Contributing

[](#contributing)

Feel free to contribute, make a fork!

### License

[](#license)

The Felicio library is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

### [Questions?](https://github.com/felicio/issues)

[](#questions)

Open a new [Issue](https://github.com/felicio/issues) or look for a closed issue

### Author

[](#author)

- Daniel Rodrigues ([@geekcom](http://github.com/geekcom))

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~41 days

Recently: every ~73 days

Total

10

Last Release

2068d ago

Major Versions

1.1.0 → 2.0.02019-11-05

PHP version history (2 changes)1.0.0PHP &gt;=7.3

2.5.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/6c09ec071fc7c89679501f7e67372b96cb3421d682c26b0bf42162cf48e94b73?d=identicon)[geekcom](/maintainers/geekcom)

---

Top Contributors

[![geekcom](https://avatars.githubusercontent.com/u/3955933?v=4)](https://github.com/geekcom "geekcom (43 commits)")

---

Tags

message-queuephpqueuessqsawssqsqueues

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/geekcom-felicio/health.svg)

```
[![Health](https://phpackages.com/badges/geekcom-felicio/health.svg)](https://phpackages.com/packages/geekcom-felicio)
```

###  Alternatives

[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3105.7M](/packages/dusterio-laravel-aws-worker)[shiftonelabs/laravel-sqs-fifo-queue

Adds a Laravel queue driver for Amazon SQS FIFO queues.

1556.0M3](/packages/shiftonelabs-laravel-sqs-fifo-queue)[dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

1352.7M1](/packages/dusterio-laravel-plain-sqs)[enqueue/sqs

Message Queue Amazon SQS Transport

376.3M14](/packages/enqueue-sqs)[joblocal/laravel-sqs-sns-subscription-queue

A simple Laravel service provider which adds a new queue connector to handle SNS subscription queues.

48416.3k](/packages/joblocal-laravel-sqs-sns-subscription-queue)[pod-point/laravel-aws-pubsub

A Laravel broadcasting driver and queue driver that broadcasts and listens to published events utilising AWS SNS, EventBridge and SQS.

1096.1k](/packages/pod-point-laravel-aws-pubsub)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
