{"id":18258026,"url":"https://github.com/vectorface/gearman","last_synced_at":"2025-04-04T18:31:30.800Z","repository":{"id":42988066,"uuid":"468080998","full_name":"Vectorface/gearman","owner":"Vectorface","description":"A PHP interface for Danga's Gearman http://pear.php.net/package/Net_Gearman","archived":false,"fork":false,"pushed_at":"2024-09-11T19:47:32.000Z","size":439,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T13:09:46.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mhlavac/gearman","license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Vectorface.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-09T20:23:24.000Z","updated_at":"2024-09-11T19:46:38.000Z","dependencies_parsed_at":"2024-11-05T10:56:32.054Z","dependency_job_id":null,"html_url":"https://github.com/Vectorface/gearman","commit_stats":{"total_commits":142,"total_committers":21,"mean_commits":6.761904761904762,"dds":0.7464788732394366,"last_synced_commit":"eecaf17542a7fc132893b2ca48f3e6096193dc1b"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2Fgearman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2Fgearman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2Fgearman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vectorface%2Fgearman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vectorface","download_url":"https://codeload.github.com/Vectorface/gearman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247229387,"owners_count":20905042,"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-11-05T10:28:45.505Z","updated_at":"2025-04-04T18:31:30.432Z","avatar_url":"https://github.com/Vectorface.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Net/Gearman\n===========\n\nThis is a fork of [mhlavac/gearman](https://github.com/mhlavac/gearman) which has unfortunately been abandoned.\n\nPHP library for interfacing with Danga's Gearman. Gearman is a system to farm out work to other machines,\ndispatching function calls to machines that are better suited to do work, to do work in parallel, to load\nbalance lots of function calls, or to call functions between languages. \n\nInstallation\n------------\n\nAdd following line to your composer.json\n``` json\n\"vectorface/gearman\": \"^0.2\"\n``` \n\nYou can use following command\n``` sh\ncomposer.phar require --dev vectorface/geaman:^0.2\n```\n\nExamples\n--------\n\n### Client\n\n``` php\n\u003c?php\n\n$client = new \\Vectorface\\Gearman\\Client();\n$client-\u003eaddServer();\n\n$result = $client-\u003edoNormal('replace', 'PHP is best programming language!');\n$client-\u003edoBackground('long_task', 'PHP rules... PHP rules...');\n```\n\n### Worker\n\n``` php\n\u003c?php\n\n$function = function($payload) {\n    return str_replace('java', 'php', $payload);\n};\n\n$worker = new \\Vectorface\\Gearman\\Worker();\n$worker-\u003eaddServer();\n$worker-\u003eaddFunction('replace', $function);\n\n$worker-\u003ework();\n```\n\nVersioning\n----------\n\nThis library uses [semantic versioning](http://semver.org/).\n\nLicense\n-------\n\nThis library is under the new BSD license. See the complete license. [See the complete license](https://github.com/vectorface/gearman/blob/master/LICENSE)\n\nAbout\n-----\n\nI've started working on this because you can't compile PECL gearman extension on windows where I had to use the code.\nGoal of this project is to make copy of the PECL gearman extension and allow PHP developers to use this implementation\nas a polyfill for it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorface%2Fgearman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvectorface%2Fgearman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvectorface%2Fgearman/lists"}