{"id":19836016,"url":"https://github.com/alekitto/messenger-extra","last_synced_at":"2025-04-07T06:09:45.563Z","repository":{"id":48879749,"uuid":"161996636","full_name":"alekitto/messenger-extra","owner":"alekitto","description":"Additional transports and serializer support for symfony messenger","archived":false,"fork":false,"pushed_at":"2025-02-24T19:18:03.000Z","size":245,"stargazers_count":20,"open_issues_count":1,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T05:03:58.980Z","etag":null,"topics":["doctrine-dbal","messenger","php","queue","symfony","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/alekitto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["alekitto"]}},"created_at":"2018-12-16T12:00:30.000Z","updated_at":"2025-02-24T19:18:07.000Z","dependencies_parsed_at":"2022-08-19T16:20:36.209Z","dependency_job_id":null,"html_url":"https://github.com/alekitto/messenger-extra","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekitto%2Fmessenger-extra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekitto%2Fmessenger-extra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekitto%2Fmessenger-extra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alekitto%2Fmessenger-extra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alekitto","download_url":"https://codeload.github.com/alekitto/messenger-extra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601448,"owners_count":20964864,"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":["doctrine-dbal","messenger","php","queue","symfony","symfony-messenger"],"created_at":"2024-11-12T12:09:48.562Z","updated_at":"2025-04-07T06:09:45.540Z","avatar_url":"https://github.com/alekitto.png","language":"PHP","funding_links":["https://github.com/sponsors/alekitto"],"categories":[],"sub_categories":[],"readme":"Messenger Extra\n===============\n\n[![Tests](https://github.com/alekitto/messenger-extra/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/alekitto/messenger-extra/actions/workflows/tests.yml)\n\nThis library provides additional transports (and other things) for the symfony messenger component.\n\n## Install\n\n```\ncomposer require kcs/messenger-extra\n```\n\n## Transports\n\n### Doctrine DBAL\n\nA transport using doctrine DBAL can be used through the `DbalTransportFactory`.\n\nSupports delayed, prioritized, expiring (TTL) and unique messages.\n\nThe dsn supports the following schemes:\n\n- `db2`\n- `mssql`\n- `mysql`\n- `mysql2`\n- `postgres`\n- `postgresql`\n- `pgsql`\n- `sqlite`\n- `sqlite3`\n\n### Doctrine ORM\n\nAn existing ORM connection can be used with `doctrine` scheme.\n\nFor example `doctrine://default/queue` will use the `default` doctrine\nconnection with the `queue` table.\n\nThe `doctrine` scheme will also register a `postGenerateSchema`\nevent listener that will create the correct table during a schema update\n(or migration if using DoctrineMigrations)\n\n### Mongo\n\nTransport using MongoDB PHP client as transport.\n\nSupports delayed, prioritized, expiring (TTL) and unique messages.\n\nUse DSN with `mongodb` scheme with `/database/collection` path\n(database `default` and `queue` collection are used if not specified).\n\n#### Mongodb authentication\n\nFor authenticated database, with user configured per database, you could\nspecify `authSource` option in DSN query string:\n\n```\nmongodb://user:pass@server:port/database?authSource=database\n```\n\n\u003e :warning: NOTE that if a username is passed in DSN the `authSource` connection option\nis already added to the mongo uri when passing to the client library.\nIts value is equal to the database selected (`default` if missing).\n\n\u003e :information_source: For information about the supported options in mongo DSN you can check\nthe [official documentation page on PHP.net](https://www.php.net/mongodb-driver-manager.construct#mongodb-driver-manager.construct-urioptions)\n\n### Null\n\nUseful for testing environments, where no message should be dispatched.\n\n## Messages utilities\n\n### DelayedMessageInterface\n\nAllows to specify a message delay. Implement this in your message class to delay the delivery of your message.\n\n### TTLAwareMessageInterface\n\nAllows the expiration of a message.\nImplement this interface if you want your message to expire after a given amount of time.\n\n### UniqueMessageInterface\n\nAdds a message only once in the queue.\nIf another message with the same uniqueness key is present, the message is discarded.\n\n## Compatibility\n\n| Version    | Compatible Symfony Version | Build Status |\n|------------|----------------------------|--------------|\n| \u003e= 2.2.0   | ^4.4, ^5.0                 | [![Tests](https://github.com/alekitto/messenger-extra/actions/workflows/tests.yml/badge.svg?branch=2.x)](https://github.com/alekitto/messenger-extra/actions/workflows/tests.yml) |\n| 2.0, 2.1   | ^4.3, ^5.0                 | Not available |\n| 1.x        | 4.2.*                      | Not available |\n\n## Symfony bundle\n\nA symfony bundle is included in the code under /lib:\nUse `MessengerExtraBundle` to fully integrate this library into your symfony application.\nJust add this to `bundles.php`:\n\n```\n    Kcs\\MessengerExtra\\MessengerExtraBundle::class =\u003e ['all' =\u003e true],\n```\n\nAvailable transports and functionalities will be registered automatically.\n\n---\n\nAmazing things will come shortly.\n\n## License \u0026 Contribute\n\nThis library is released under MIT license.\n\nFeel free to open an issue or a PR on GitHub. If you want to contribute to this project, you're welcome!\n\nA.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekitto%2Fmessenger-extra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falekitto%2Fmessenger-extra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falekitto%2Fmessenger-extra/lists"}