{"id":23757539,"url":"https://github.com/scientanl/php-rsmq-client","last_synced_at":"2025-09-05T04:32:18.972Z","repository":{"id":62541218,"uuid":"208816168","full_name":"ScientaNL/php-rsmq-client","owner":"ScientaNL","description":"PHP rsmq client","archived":false,"fork":false,"pushed_at":"2020-12-01T14:49:17.000Z","size":13,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-30T01:24:05.533Z","etag":null,"topics":["message-queue","php","redis","rsmq"],"latest_commit_sha":null,"homepage":null,"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/ScientaNL.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":"2019-09-16T14:09:42.000Z","updated_at":"2020-12-01T14:48:26.000Z","dependencies_parsed_at":"2022-11-02T15:45:24.124Z","dependency_job_id":null,"html_url":"https://github.com/ScientaNL/php-rsmq-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fphp-rsmq-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fphp-rsmq-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fphp-rsmq-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScientaNL%2Fphp-rsmq-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScientaNL","download_url":"https://codeload.github.com/ScientaNL/php-rsmq-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232024702,"owners_count":18461966,"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","redis","rsmq"],"created_at":"2024-12-31T19:48:41.846Z","updated_at":"2024-12-31T19:48:43.069Z","avatar_url":"https://github.com/ScientaNL.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/scienta/php-rsmq-client/v/stable?format=flat)](https://packagist.org/packages/scienta/php-rsmq-client)\n[![Total Downloads](https://poser.pugx.org/syslogic/php-rsmq-client/downloads?format=flat)](https://packagist.org/packages/syslogic/php-rsmq-client/stats)\n[![License](https://poser.pugx.org/scienta/php-rsmq-client/license)](https://packagist.org/packages/scienta/php-rsmq-client)\n\n\n# php-rsmq-client\nA library for queueing [RSMQ](https://www.npmjs.com/package/rsmq) messages in [Redis](https://redis.io/).\n\n\n### TL;DR\nA php implementation of the enqueue-code from [RSMQ](https://www.npmjs.com/package/rsmq) for adding messages to the queue.\nSupports [realtime](https://www.npmjs.com/package/rsmq#realtime) PUBLISH of new messages.\n\n\nInstallation\n------------\nThe recommended way to install php-rsmq-client is through [Composer](https://getcomposer.org/).\nAdd the following dependency to your composer.json\n```json\n{\n\t\"require\": {\n\t\t\"scienta/php-rsmq-client\": \"~1.0\"\n\t}\n}\n```\nAlternatively, you can download the [source code as a file](https://github.com/ScientaNL/php-rsqm-client/releases) and extract it.\n\n\nUsage\n-----\n\nConfiguration for queues and messages can be more elaborate than specified below, all [RSMQ](https://www.npmjs.com/package/rsmq) options are supported.\nThe library makes use of a Redis adapter make the usage of other php redis clients possible.\nDefault (used in this example) is the [phpredis](https://github.com/phpredis/phpredis) C extension.\n\n### Creating a basic queue\n```php\nuse Scienta\\RSMQClient\\Config;\nuse Scienta\\RSMQClient\\Message;\nuse Scienta\\RSMQClient\\Queue;\nuse Scienta\\RSMQClient\\Redis\\RedisAdapter;\n\n//Create a redis connection\n$redis = new \\Redis();\n$redis-\u003econnect('127.0.0.1', '6379');\n\n//Configure and create/sync a queue\n$config = new Config('myqueue');\n$redisAdapter = new RedisAdapter($redis);\n$queue = new Queue($config, $redisAdapter);\n\n//Create a message\n$message = new Message('Hello World');\n\n//Send the message\n$sentId = $queue-\u003esendMessage($message);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Fphp-rsmq-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscientanl%2Fphp-rsmq-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscientanl%2Fphp-rsmq-client/lists"}