{"id":18818394,"url":"https://github.com/handcraftedinthealps/redistransportbundle","last_synced_at":"2025-04-13T23:32:40.515Z","repository":{"id":62514379,"uuid":"158395849","full_name":"handcraftedinthealps/RedisTransportBundle","owner":"handcraftedinthealps","description":"[DEPRECATED] Now part of symfony/messenger since 4.3. Use that implementation instead!","archived":false,"fork":false,"pushed_at":"2024-01-17T13:53:19.000Z","size":52,"stargazers_count":6,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"1.2","last_synced_at":"2025-04-11T07:23:26.031Z","etag":null,"topics":["message-bus","php","redis","symfony","symfony-bundle","symfony-messenger"],"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/handcraftedinthealps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-20T13:42:55.000Z","updated_at":"2022-10-02T10:48:52.000Z","dependencies_parsed_at":"2022-11-02T10:17:38.758Z","dependency_job_id":null,"html_url":"https://github.com/handcraftedinthealps/RedisTransportBundle","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handcraftedinthealps%2FRedisTransportBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handcraftedinthealps%2FRedisTransportBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handcraftedinthealps%2FRedisTransportBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/handcraftedinthealps%2FRedisTransportBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/handcraftedinthealps","download_url":"https://codeload.github.com/handcraftedinthealps/RedisTransportBundle/tar.gz/refs/heads/1.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248796904,"owners_count":21163050,"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-bus","php","redis","symfony","symfony-bundle","symfony-messenger"],"created_at":"2024-11-08T00:16:26.887Z","updated_at":"2025-04-13T23:32:40.475Z","avatar_url":"https://github.com/handcraftedinthealps.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RedisTransportBundle ⛰\n\n[![GitHub license](https://img.shields.io/github/license/handcraftedinthealps/RedisTransportBundle.svg)](https://github.com/handcraftedinthealps/RedisTransportBundle/blob/master/LICENSE)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/handcraftedinthealps/RedisTransportBundle.svg)](https://github.com/handcraftedinthealps/RedisTransportBundle/releases)\n[![CircleCI](https://circleci.com/gh/sulu/sulu/tree/develop.svg?style=shield)](https://circleci.com/gh/handcraftedinthealps/RedisTransportBundle/tree/master)\n\nA symfony messenger transport implementation for redis streams.\n\n\u003e **NOTE: Most of the logic has moved to the Core Symfony Messenger component in 4.3. So this bundle is not longer a requirement to use messenger with redis streams. You can now use the `redis://` instead of `redis-stream://` and remove this bundle from your requirements.**\n\n## Requirements\n\n - PHP: **`^7.1`**\n    - Redis Extension: **`^4.2`**\n - Redis Server: **`^5.0`**\n\n## Symfony compatibility\n\n| Symfony Messenger Version | Bundle Version\n|---------------------------|------------------\n| 4.2                       | 1.0\n| 4.3                       | 1.1\n\nWhen upgrading to symfony 4.3 you should replace this bundle \nwith the symfony `redis://` transport and remove the bundle\nfrom your requirements.\n\n## Installation\n\nYou need [composer](https://getcomposer.org) to install this bundle to your symfony application.\n\n```bash\ncomposer require handcraftedinthealps/redis-transport-bundle\n```\n\n## Configuration\n\n### Symfony\n\nWhen using the **symfony/framework-bundle** you can configure the following:\n\n```yaml\n# config/packages/framework.yaml\nframework:\n    messenger:\n        routing:\n            'HandcraftedInTheAlps\\Bundle\\RedisTransportBundle\\Message\\DomainEventMessage':\n                senders: ['redis_stream']\n        transports:\n            redis_stream: 'redis-stream://127.0.0.1:6379/my_stream/my_group/my_consumer'\n```\n\nYou can then send a DomainEventMessage or your custom Message over the redis stream:\n\n```php\nuse HandcraftedInTheAlps\\Bundle\\RedisTransportBundle\\Message\\DomainEventMessage;\n\n$this-\u003emessageBus-\u003edispatch(\n    new DomainEventMessage(\n        'mountain.modified',    // the custom event action\n        'mountain',             // the model which has been changed\n        '1',                    // the model id or uuid\n        [                       // the model payload\n            'id' =\u003e '1',\n            'name' =\u003e 'Piz Buin',\n            'height' =\u003e 3312,\n        ]\n    )\n);\n```\n\nAnd you can consume the messages with:\n\n```bash\nbin/console messenger:consume-messages redis_stream\n```\n\nHave also a look at the [messenger component documentation](https://symfony.com/doc/current/components/messenger.html) and [messenger usage documentation](https://symfony.com/doc/current/messenger.html).\n\n\n## Commands\n\nMessages in streams won't be removed by default. Therefor this bundle provides a command:\n\n```\nbin/console redis-transport:trim \u003credis-dsn\u003e --maxlen 1000\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandcraftedinthealps%2Fredistransportbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhandcraftedinthealps%2Fredistransportbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhandcraftedinthealps%2Fredistransportbundle/lists"}