{"id":33956873,"url":"https://github.com/florianajir/rabbitmq-sql-worker","last_synced_at":"2025-12-12T20:50:05.866Z","repository":{"id":33673310,"uuid":"37326028","full_name":"florianajir/rabbitmq-sql-worker","owner":"florianajir","description":":incoming_envelope: :floppy_disk:  RabbitMQ php symfony worker providing SQL persistence with relationship support","archived":false,"fork":false,"pushed_at":"2023-05-04T12:57:15.000Z","size":576,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T18:17:22.043Z","etag":null,"topics":["php","rabbitmq","sql","symfony"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/florianajir/rabbitmq-sql-bundle","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florianajir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-12T14:18:19.000Z","updated_at":"2023-05-04T12:52:47.000Z","dependencies_parsed_at":"2022-09-11T16:02:00.138Z","dependency_job_id":null,"html_url":"https://github.com/florianajir/rabbitmq-sql-worker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/florianajir/rabbitmq-sql-worker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianajir%2Frabbitmq-sql-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianajir%2Frabbitmq-sql-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianajir%2Frabbitmq-sql-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianajir%2Frabbitmq-sql-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florianajir","download_url":"https://codeload.github.com/florianajir/rabbitmq-sql-worker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florianajir%2Frabbitmq-sql-worker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27691287,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","rabbitmq","sql","symfony"],"created_at":"2025-12-12T20:50:03.222Z","updated_at":"2025-12-12T20:50:05.859Z","avatar_url":"https://github.com/florianajir.png","language":"PHP","readme":"# Rabbitmq-sql-worker\n\n[![Latest Stable Version](http://poser.pugx.org/florianajir/rabbitmq-sql-bundle/v)](https://packagist.org/packages/florianajir/rabbitmq-sql-bundle) [![Total Downloads](http://poser.pugx.org/florianajir/rabbitmq-sql-bundle/downloads)](https://packagist.org/packages/florianajir/rabbitmq-sql-bundle) [![Latest Unstable Version](http://poser.pugx.org/florianajir/rabbitmq-sql-bundle/v/unstable)](https://packagist.org/packages/florianajir/rabbitmq-sql-bundle) [![License](http://poser.pugx.org/florianajir/rabbitmq-sql-bundle/license)](https://packagist.org/packages/florianajir/rabbitmq-sql-bundle) [![PHP Version Require](http://poser.pugx.org/florianajir/rabbitmq-sql-bundle/require/php)](https://packagist.org/packages/florianajir/rabbitmq-sql-bundle)\n\n[![Code Coverage](https://scrutinizer-ci.com/g/florianajir/rabbitmq-sql-worker/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/florianajir/rabbitmq-sql-worker/?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/florianajir/rabbitmq-sql-worker/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/florianajir/rabbitmq-sql-worker/?branch=master)\n\n## About\n\nThe RabbitMqSqlBundle is a symfony worker to provide rabbitmq message persistence for your application using the php-amqplib/rabbitmq-bundle and doctrine/dbal libraries.\n\nYou just need to configure the mapping in yml and execute a command, a simple and scalable rabbitmq to sql consumer to persist your entities:\n\n```shellScript\nphp app/console rabbitmq:consumer -w sql\n```\n\n## Features\n\n* mapping yml config (doctrine like)\n* Insert records\n* Update records \n* Relational records : oneToOne, oneToMany, manyToOne, manyToMany\n* Update, Delete relations\n* Foreign keys support\n\n## Examples\n\nFollowing example shows you the consuming process to persist in database a simple subscriber from an asynchronous message data.\n\nRabbitMQ incoming message data:\n\n```json\n{\n  \"name\" : \"Rogger Rabbit\",\n  \"email\" : \"subscriber@acme.corp\",\n  \"Groups\": [ { \"slug\": \"subscriber\" } ]\n}\n```\n\nSQL requests output:\n\n```sql\nINSERT INTO `members` (`name`, `email`) VALUES (\"Rogger Rabbit\", \"subscriber@acme.corp\");\nINSERT INTO `member_group` (`member_id`, `group_id`) VALUES (3, 2);\n```\n\n\u003e Take more inspiration from [Examples documentation](Resources/doc/examples.md)\n\n## License\n\nThis application is under the MIT license. See the complete license in this file :\n\n    Resources/meta/LICENSE\n\n## Installation ##\n\n### For Symfony Framework \u003e= 2.3\n\nRequire the worker and its dependencies with composer:\n\n```bash\n$ composer require florianajir/rabbitmq-sql-worker\n```\n\nRegister this bundles:\n\n```php\n// app/AppKernel.php\n\npublic function registerBundles()\n{\n    $bundles = array(\n        new OldSound\\RabbitMqBundle\\OldSoundRabbitMqBundle(),\n        new FlorianAjir\\RabbitMqSqlBundle\\FlorianAjirRabbitMqSqlBundle(),\n    );\n}\n```\n\n## Configuration\n\nYou have to configure the rabbitmq and the database and define message structures and database mapping.\n\n* [Rabbitmq-sql Configuration](Resources/doc/configuration.md)\n* [Mapping Documentation](Resources/doc/configuration.md)\n\nEnjoy !\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianajir%2Frabbitmq-sql-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorianajir%2Frabbitmq-sql-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorianajir%2Frabbitmq-sql-worker/lists"}