{"id":35190986,"url":"https://github.com/codeages/beanstalk-client","last_synced_at":"2026-05-21T10:34:16.362Z","repository":{"id":56954828,"uuid":"63739304","full_name":"codeages/beanstalk-client","owner":"codeages","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-27T16:50:59.000Z","size":21,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-19T11:16:48.114Z","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/codeages.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-07-20T01:18:30.000Z","updated_at":"2023-05-22T13:30:22.000Z","dependencies_parsed_at":"2022-08-21T08:50:23.601Z","dependency_job_id":null,"html_url":"https://github.com/codeages/beanstalk-client","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/codeages/beanstalk-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeages%2Fbeanstalk-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeages%2Fbeanstalk-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeages%2Fbeanstalk-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeages%2Fbeanstalk-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codeages","download_url":"https://codeload.github.com/codeages/beanstalk-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codeages%2Fbeanstalk-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33297520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T02:57:32.698Z","status":"ssl_error","status_checked_at":"2026-05-21T02:57:31.990Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-12-29T05:39:57.941Z","updated_at":"2026-05-21T10:34:16.357Z","avatar_url":"https://github.com/codeages.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# README\n\n在[davidpersson/beanstalk](https://github.com/davidpersson/beanstalk)的基础上, 对原Client类进行了以下改造：\n\n  * 初始化时，加入了`socket_timeout`参数，设置socket闲置超时时间，在该单位时间内无操作就会关闭连接，默认为20秒；设置为-1，表示不限制；\n  * 加入了Exception机制，以区分命令执行失败的情况；\n  * 加入了reconnect方法，当socket异常关闭时，可调用此方法重新打开socket，并自动监听相关tube。\n\n新增：\n\n  * ClientProxy类，此类实现了当socket被异常关闭时，会自动重连。\n  * Help类，对队列的清空提供了辅助函数。\n\n## Installation\n\n```\ncomposer require codeages/beanstalk-client\n```\n\n## Usage\n\n```php\nuse Codeages\\Beanstalk\\Client;\n\n$client = new Client([/* options */]);\n$connected = $client-\u003econnect();\n```\n\n代理类的使用：\n\n```php\nuse Codeages\\Beanstalk\\Client;\nuse Codeages\\Beanstalk\\ClientProxy;\n\n$client = new Client([/* options */]);\n$client = new ClientProxy($client);\n$client-\u003econnect();\n$client-\u003eput(.......);\n```\n\n代理类，比较适合在后台服务进程类的程序中使用。\n\n## Changelog\n\nSee [CHANGELOG.md](CHANGELOG.md).\n\n## License\n\nMIT.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeages%2Fbeanstalk-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodeages%2Fbeanstalk-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodeages%2Fbeanstalk-client/lists"}