{"id":33980861,"url":"https://github.com/jobatator/php","last_synced_at":"2025-12-13T03:30:38.401Z","repository":{"id":57013567,"uuid":"257512261","full_name":"jobatator/php","owner":"jobatator","description":"The Jobatator PHP Client","archived":false,"fork":false,"pushed_at":"2021-04-05T09:12:12.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-03T21:53:19.184Z","etag":null,"topics":["consumer","jobatator","php","php-client"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jobatator.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-21T07:23:33.000Z","updated_at":"2021-04-05T09:09:20.000Z","dependencies_parsed_at":"2022-08-21T13:40:56.955Z","dependency_job_id":null,"html_url":"https://github.com/jobatator/php","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jobatator/php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobatator%2Fphp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobatator%2Fphp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobatator%2Fphp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobatator%2Fphp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jobatator","download_url":"https://codeload.github.com/jobatator/php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobatator%2Fphp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27699626,"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","status":"online","status_checked_at":"2025-12-13T02:00:09.769Z","response_time":147,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["consumer","jobatator","php","php-client"],"created_at":"2025-12-13T03:30:37.686Z","updated_at":"2025-12-13T03:30:38.392Z","avatar_url":"https://github.com/jobatator.png","language":"PHP","readme":"# jobatator-php\n\nUse this library to publish and consume jobs on a jobatator server.\n\n ## Requirements\n \n- php \u003e= 7.4\n- ext-json\n- ext-sockets\n- clue/socket-raw\n \n ## Publisher usage\n \n~~~php\n$client = new \\Lefuturiste\\Jobatator\\Client(\n    \"localhost\",\n    \"8962\",\n    \"my_username\",\n    \"my_password\",\n    \"my_group\"\n);\n\n // return true if the connexion succeeded\n$client-\u003ecreateConnexion();\n\n // return true if publish succeeded\n$client-\u003epublish(\"my_job_type\", [\"payload\" =\u003e [\"something\" =\u003e 12]]); \n~~~\n\n## Consumer usage\n\n~~~php\n$client = new \\Lefuturiste\\Jobatator\\Client(\n    \"localhost\",\n    \"8962\",\n    \"my_username\",\n    \"my_password\",\n    \"my_group\"\n);\n\n$client-\u003ecreateConnexion();\n$client-\u003esetRootValue(\"My root value\"); // can be a container interface for example\n$client-\u003eaddHandler(\"my_job_type\", function(array $payload, $rootValue) {\n    echo \"Job handler!\";\n    // you can use the $rootValue var to get back your $rootValue variable\n});\n$client-\u003estartWorker(); // will listen forever until the process stop\n~~~","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobatator%2Fphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjobatator%2Fphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobatator%2Fphp/lists"}