{"id":19665919,"url":"https://github.com/amphp/beanstalk","last_synced_at":"2025-04-09T18:18:56.223Z","repository":{"id":41536542,"uuid":"58405450","full_name":"amphp/beanstalk","owner":"amphp","description":"Asynchronous Beanstalk Client for PHP.","archived":false,"fork":false,"pushed_at":"2022-10-18T20:04:51.000Z","size":68,"stargazers_count":67,"open_issues_count":5,"forks_count":25,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-09T18:18:51.293Z","etag":null,"topics":["amphp","async","beanstalkd","php","queue"],"latest_commit_sha":null,"homepage":"https://amphp.org/beanstalk/","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/amphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-09T20:20:21.000Z","updated_at":"2025-03-03T01:05:08.000Z","dependencies_parsed_at":"2022-08-21T08:20:45.264Z","dependency_job_id":null,"html_url":"https://github.com/amphp/beanstalk","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amphp%2Fbeanstalk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amphp%2Fbeanstalk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amphp%2Fbeanstalk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amphp%2Fbeanstalk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amphp","download_url":"https://codeload.github.com/amphp/beanstalk/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248085325,"owners_count":21045139,"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":["amphp","async","beanstalkd","php","queue"],"created_at":"2024-11-11T16:25:28.203Z","updated_at":"2025-04-09T18:18:56.204Z","avatar_url":"https://github.com/amphp.png","language":"PHP","funding_links":[],"categories":["Unsorted yet"],"sub_categories":["Tunnel"],"readme":"# beanstalk\n\n[![Build Status](https://img.shields.io/travis/amphp/beanstalk/master.svg?style=flat-square)](https://travis-ci.org/amphp/beanstalk)\n[![CoverageStatus](https://img.shields.io/coveralls/amphp/beanstalk/master.svg?style=flat-square)](https://coveralls.io/github/amphp/beanstalk?branch=master)\n![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)\n\n`amphp/beanstalk` is an asynchronous [Beanstalk](http://kr.github.io/beanstalkd/) client for PHP based on Amp.\n\n## Installation\n\n```\ncomposer require amphp/beanstalk\n```\n\n## Examples\n\nMore extensive code examples reside in the [`examples`](./examples) directory.\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/../vendor/autoload.php';\n\nuse Amp\\Beanstalk\\BeanstalkClient;\nuse Amp\\Loop;\n\nLoop::run(function () {\n    $beanstalk = new BeanstalkClient(\"tcp://127.0.0.1:11300\");\n    yield $beanstalk-\u003euse('sometube');\n\n    $payload = json_encode([\n        \"job\" =\u003e bin2hex(random_bytes(16)),\n        \"type\" =\u003e \"compress-image\",\n        \"path\" =\u003e \"/path/to/image.png\"\n    ]);\n\n    $jobId = yield $beanstalk-\u003eput($payload);\n\n    echo \"Inserted job id: $jobId\\n\";\n\n    $beanstalk-\u003equit();\n});\n\n```\n## License\n\nThe MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famphp%2Fbeanstalk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famphp%2Fbeanstalk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famphp%2Fbeanstalk/lists"}