{"id":22466924,"url":"https://github.com/mavimo/disque-client-php","last_synced_at":"2025-07-19T13:32:33.262Z","repository":{"id":31397264,"uuid":"34960452","full_name":"mavimo/disque-client-php","owner":"mavimo","description":"Disque client for PHP","archived":false,"fork":false,"pushed_at":"2015-05-02T20:27:23.000Z","size":172,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-15T00:24:45.548Z","etag":null,"topics":[],"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/mavimo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-02T19:23:46.000Z","updated_at":"2018-09-09T15:17:56.000Z","dependencies_parsed_at":"2022-08-24T12:20:36.379Z","dependency_job_id":null,"html_url":"https://github.com/mavimo/disque-client-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mavimo/disque-client-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fdisque-client-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fdisque-client-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fdisque-client-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fdisque-client-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mavimo","download_url":"https://codeload.github.com/mavimo/disque-client-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mavimo%2Fdisque-client-php/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265942569,"owners_count":23853294,"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":[],"created_at":"2024-12-06T10:14:40.052Z","updated_at":"2025-07-19T13:32:33.221Z","avatar_url":"https://github.com/mavimo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Disque client for PHP\n\n![Build status](https://api.travis-ci.org/mavimo/disque-client-php.svg)\n\nThe current project is a PHP client for [disque](https://github.com/antirez/disque). As specified in the project page disque is ongoing experiment to build a distributed, in memory, message broker. Its goal is to capture the essence of the \"Redis as a jobs queue\" use case.\n\n**WARNING: Like disque this project alpha code NOT suitable for production. The implementation and API will likely change in significant ways during the next months. The code and algorithms are not tested enough. A lot more work is needed.**\n\n## Installing via Composer\n\nThe recommended way to install disque client is through [Composer](http://getcomposer.org).\n\n```bash\n# Install Composer\ncurl -sS https://getcomposer.org/installer | php\n```\n\nNext, run the Composer command to install the latest version of Disque Client:\n\n```bash\ncomposer.phar require mavimo/disque-client\n```\n\nAfter installing, you need to require Composer's autoloader:\n\n```php\nrequire 'vendor/autoload.php';\n```\n\n## Usage\n\nThis is a simple code snippet on how to use the Disque Client:\n\n```php\nrequire 'vendor/autoload.php';\n\n$socket = new Mavimo\\Disque\\Client\\Socket('127.0.0.1', 7711);\n$client = new Mavimo\\Disque\\Client\\Client($socket);\n\n$queue = new Mavimo\\Disque\\Queue\\Queue('mytest');\n\n$body = json_encode([\n    'foo' =\u003e true,\n    'bar' =\u003e 'Lorem ipsum',\n]);\n\n$jobA = new Mavimo\\Disque\\Job\\Job($body);\n$jobB = new Mavimo\\Disque\\Job\\Job($body);\n$jobC = new Mavimo\\Disque\\Job\\Job($body);\n\n$client-\u003epush($queue, $jobA);\nvar_dump($jobA);\n$client-\u003epush($queue, $jobB);\nvar_dump($jobB);\n$client-\u003epush($queue, $jobC);\nvar_dump($jobC);\n\n$job1 = $client-\u003efetch($queue);\nvar_dump($job1);\n$job2 = $client-\u003efetch($queue);\nvar_dump($job2);\n$job3 = $client-\u003efetch($queue, 1);\nvar_dump($job3);\n$job4 = $client-\u003efetch($queue, 1);\nvar_dump($job4);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fdisque-client-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmavimo%2Fdisque-client-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmavimo%2Fdisque-client-php/lists"}