{"id":16466604,"url":"https://github.com/geekcom/felicio","last_synced_at":"2025-03-23T11:32:36.569Z","repository":{"id":35076592,"uuid":"205210891","full_name":"geekcom/felicio","owner":"geekcom","description":"A simple AWS SQS Messages with PHP","archived":false,"fork":false,"pushed_at":"2023-06-14T17:19:16.000Z","size":150,"stargazers_count":10,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T19:55:10.635Z","etag":null,"topics":["message-queue","php","queues","sqs"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/geekcom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-29T16:58:15.000Z","updated_at":"2023-01-13T12:18:15.000Z","dependencies_parsed_at":"2024-10-28T16:06:15.131Z","dependency_job_id":"7a1a192b-a88d-4791-95ee-b211da584f1e","html_url":"https://github.com/geekcom/felicio","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.045454545454545414","last_synced_commit":"c02c8388a40cc123e4fecb921b489cf1ee58791e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcom%2Ffelicio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcom%2Ffelicio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcom%2Ffelicio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geekcom%2Ffelicio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geekcom","download_url":"https://codeload.github.com/geekcom/felicio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097158,"owners_count":20560311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["message-queue","php","queues","sqs"],"created_at":"2024-10-11T11:44:11.499Z","updated_at":"2025-03-23T11:32:36.241Z","avatar_url":"https://github.com/geekcom.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Felicio\n_A simple AWS SQS Messages with PHP_\n\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/geekcom/felicio/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/geekcom/felicio/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/geekcom/felicio/v/stable)](https://packagist.org/packages/geekcom/felicio)\n[![Minimum PHP Version](https://img.shields.io/badge/php-%3E%3D%207.4-blue.svg?style=flat-square)](https://php.net/)\n[![License](https://poser.pugx.org/geekcom/felicio/license)](https://packagist.org/packages/geekcom/felicio)\n\n### About Felicio and SQS\n\nFelicio is a simple library to manipulate [AWS SQS Messages](https://aws.amazon.com/pt/sqs/).\n\n- Simple;\n- Configurable;\n- Testable;\n- Open source.\n\n[Amazon Simple Queue Service (SQS)](https://aws.amazon.com/pt/sqs/) is a fully managed message queuing service \nthat enables you to decouple and scale microservices, distributed systems, and serverless applications.\n\n### Installation\n\nInstall [Composer](http://getcomposer.org) if you don't have it.\n```\ncomposer require geekcom/felicio\n```\nOr in your file'composer.json' add:\n\n```json\n{\n    \"require\": {\n        \"geekcom/felicio\": \"^2.5.0\"\n    }\n}\n```\n\nAnd the just run:\n\n    composer install\n\nand thats it.\n\n----------------------------------------------------------------------------------------------------------------------------\n\n\n### Configure\n\nRename `.felicio.example` to `.felicio` and fill in the correct information about your AWS SQS account.\n```\nAWS_SQS_ACCESS_KEY=\nAWS_SQS_SECRET_KEY=\nAWS_SQS_REGION=\nAWS_SQS_API_VERSION=latest\n```\n\n### Send a message\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Felicio\\Felicio;\n\n$felicioDotFile = __DIR__ . '/.felicio';\n\n$felicio = new Felicio($felicioDotFile);\n\n$params = [\n    'QueueUrl' =\u003e 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',\n    'MessageBody' =\u003e 'test message'\n];\n\n$felicio-\u003esendMessage($params);\n```\n\n### Receive a message\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Felicio\\Felicio;\n\n$felicioDotFile = __DIR__ . '/.felicio';\n\n$felicio = new Felicio($felicioDotFile);\n\n$params = [\n    'AttributeNames' =\u003e ['SentTimestamp'],\n    'MaxNumberOfMessages' =\u003e 1,\n    'MessageAttributeNames' =\u003e ['All'],\n    'QueueUrl' =\u003e 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',\n    'WaitTimeSeconds' =\u003e 0,\n];\n\n$message = $felicio-\u003ereceiveMessage($params);\n\nvar_dump($message);\n```\n\n### Delete a message\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Felicio\\Felicio;\n\n$felicioDotFile = __DIR__ . '/.felicio';\n\n$felicio = new Felicio($felicioDotFile);\n\n$params = [\n    'QueueUrl' =\u003e 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue',\n    'ReceiptHandle' =\u003e '', // required\n];\n\n$felicio-\u003edeleteMessage($params);\n```\n\n### Count messages\n```php\nrequire __DIR__ . '/vendor/autoload.php';\n\nuse Felicio\\Felicio;\n\n$felicioDotFile = __DIR__ . '/.felicio';\n\n$felicio = new Felicio($felicioDotFile);\n\n$queueUrl = 'https://sqs.us-west-2.amazonaws.com/999999999/my_queue';\n\n$messages = $felicio-\u003ecountMessages($queueUrl);\n\nvar_dump($messages);\n```\n\n### Contributing\n\nFeel free to contribute, make a fork!\n\n### License\n\nThe Felicio library is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n\n### [Questions?](https://github.com/felicio/issues)\n\nOpen a new [Issue](https://github.com/felicio/issues) or look for a closed issue\n\n### Author\n\n- Daniel Rodrigues ([@geekcom](http://github.com/geekcom))","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcom%2Ffelicio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekcom%2Ffelicio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekcom%2Ffelicio/lists"}