{"id":33953048,"url":"https://github.com/halaei/lqrm-php","last_synced_at":"2026-05-02T08:31:27.127Z","repository":{"id":62514141,"uuid":"151860707","full_name":"halaei/lqrm-php","owner":"halaei","description":"PHP Driver for Laravel Queue Redis Module (lqrm) - under development","archived":false,"fork":false,"pushed_at":"2018-10-06T18:23:12.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T08:48:12.291Z","etag":null,"topics":["laravel","queue","redis","redis-module"],"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/halaei.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-10-06T16:46:30.000Z","updated_at":"2018-10-15T01:35:58.000Z","dependencies_parsed_at":"2022-11-02T13:02:40.666Z","dependency_job_id":null,"html_url":"https://github.com/halaei/lqrm-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/halaei/lqrm-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Flqrm-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Flqrm-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Flqrm-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Flqrm-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halaei","download_url":"https://codeload.github.com/halaei/lqrm-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halaei%2Flqrm-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32528128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["laravel","queue","redis","redis-module"],"created_at":"2025-12-12T19:54:47.459Z","updated_at":"2026-05-02T08:31:27.092Z","avatar_url":"https://github.com/halaei.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP Driver for Laravel Queue Redis Module (lqrm)\n\nThis is PHP driver for the [\"Laravel Queue Redis Driver\"](https://github.com/halaei/lqrm).\n\n# Why use lqrm?\nBecause:\n1. Blocking pop is now more reliable than before.\n2. Blocking pop now works on delayed and reserved jobs as well.\n3. Timer for delayed and reserved jobs is server side, with milliseconds precision. This means\nyou don't need to worry about syncing your php and redis servers, in case your projects are \ndistributed accross different servers. Moreover, this makes `retry_after` and `block_for`\nconfigurations independent of each other.\n4. Laravel queue can now be available for other programming languages and frameworks as well.\nFeel free to port it to your favorite ones.\n\n\n## Installation\n\nFirst install the package via composer:\n\n    composer require halaei/lqrm\n    \nThen add the service provider to your config/app.php:\n\n    Halaei\\Lqrm\\LaravelRedisQueueServiceProvider::class\n\nTo use this package with `laravel/horizon`, instead use the following service provider:\n\nFinally, change driver of your redis queue connections to `lqrm` in app/queue.php, and set block_for to some small\ninteger:\n\n    'redis' =\u003e [\n        'driver'      =\u003e 'lqrm',        // \u003c\u003c\u003c switch to lqrm driver\n        'connection'  =\u003e 'default',\n        'queue'       =\u003e 'default',\n        'retry_after' =\u003e 90,\n        'block_for'   =\u003e 10,            // \u003c\u003c\u003c set block_for\n    ],\n\nPlease note that if you need to increase 'block_for' in the config array above, you should increase --timeout in your\n`queue:work` commands as well.\n\n## Detailed Consideration\n\nHere are the behaviour changes if you move from the original Laravel 5.7 driver to `lqrm`.\nI believe the changes are for the best and probably have ignorable affects on your projects.\n\n1. In 5.7, setting `block_for` to 0 means blocking for ever.\nIn lqrm setting `blocking_for` to 0 or any value less than 1 means not to block at all.\n2. Using 5.7 with horizon, calling pop() can trigger JobsMigrated() event, if it migrates jobs from delayed and\nreserved queue. `lqrm` does not trigger this event.\n3. In 5.7, you could optionally disable migration of expired jobs from reserved queue. This is\nnot supported in `lqrm`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaei%2Flqrm-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalaei%2Flqrm-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalaei%2Flqrm-php/lists"}