{"id":16965276,"url":"https://github.com/s12v/phpque","last_synced_at":"2025-04-11T23:06:46.831Z","repository":{"id":31313139,"uuid":"34875506","full_name":"s12v/phpque","owner":"s12v","description":"PHP client for Disque","archived":false,"fork":false,"pushed_at":"2015-05-02T13:41:21.000Z","size":208,"stargazers_count":11,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T23:06:09.701Z","etag":null,"topics":["disque","php"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/s12v/phpque","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/s12v.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":"2015-04-30T20:35:14.000Z","updated_at":"2020-08-03T19:51:53.000Z","dependencies_parsed_at":"2022-08-27T12:01:27.458Z","dependency_job_id":null,"html_url":"https://github.com/s12v/phpque","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s12v%2Fphpque","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s12v%2Fphpque/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s12v%2Fphpque/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/s12v%2Fphpque/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/s12v","download_url":"https://codeload.github.com/s12v/phpque/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248492871,"owners_count":21113163,"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":["disque","php"],"created_at":"2024-10-13T23:45:32.846Z","updated_at":"2025-04-11T23:06:46.794Z","avatar_url":"https://github.com/s12v.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/s12v/phpque.svg?branch=master)](https://travis-ci.org/s12v/phpque)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/s12v/phpque/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/s12v/phpque/?branch=master)\n[![Latest Stable Version](https://poser.pugx.org/s12v/phpque/v/stable)](https://packagist.org/packages/s12v/phpque)\n\n# phpque\n\nLightweight and fast [Disque](https://github.com/antirez/disque) PHP client without external dependencies.\nSupports PHP 5.3, 5.4, 5.5, 5.6, and HHVM.\n\n## Installation\n\n```\ncomposer require s12v/phpque\n```\n\n## Usage\n\n```php\n\u003c?php\n\nuse Phpque\\Client;\nuse Phpque\\Connection\\ConnectionException;\n\nrequire '../vendor/autoload.php';\n\ntry {\n    // Connect to a server pool\n    $client = new Client(['tcp://127.0.0.1:7711', 'tcp://127.0.0.1:7712']);\n\n    // ... or to a single server\n    $client = new Client('tcp://127.0.0.1:7711');\n} catch (ConnectionException $e) {\n    // Handle connection errors\n    throw $e;\n}\n\n// Add a job with payload \"some data\" and timeout 1 sec\n$client-\u003eaddJob('test_queue', 'some data', 1000);\n\n// Get a job from the queue\n$job = $client-\u003egetJob(array('test_queue'));\n\n// Acknowledge the job\n$client-\u003eackJob($job);\n```\n\n## API\n\nRefer to the [Disque documentation](https://github.com/antirez/disque#api) and [ClientInterface](https://github.com/s12v/phpque/blob/master/src/ClientInterface.php)\n\n## Development\n\nRun tests:\n```\n./vendor/bin/phpunit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs12v%2Fphpque","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fs12v%2Fphpque","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fs12v%2Fphpque/lists"}