{"id":20238230,"url":"https://github.com/basilfx/phalcon-jobqueue","last_synced_at":"2025-09-05T02:49:51.845Z","repository":{"id":145221095,"uuid":"84799234","full_name":"basilfx/Phalcon-JobQueue","owner":"basilfx","description":"PHP job queue for asynchronous tasks within the Phalcon Framework.","archived":false,"fork":false,"pushed_at":"2017-03-13T10:01:13.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T14:47:54.371Z","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/basilfx.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-13T07:59:29.000Z","updated_at":"2017-03-13T08:26:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"7826a1b1-6926-4a3f-839c-8fd0cd7e226c","html_url":"https://github.com/basilfx/Phalcon-JobQueue","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/basilfx/Phalcon-JobQueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2FPhalcon-JobQueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2FPhalcon-JobQueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2FPhalcon-JobQueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2FPhalcon-JobQueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basilfx","download_url":"https://codeload.github.com/basilfx/Phalcon-JobQueue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basilfx%2FPhalcon-JobQueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273703695,"owners_count":25153001,"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-09-05T02:00:09.113Z","response_time":402,"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":[],"created_at":"2024-11-14T08:32:30.338Z","updated_at":"2025-09-05T02:49:46.831Z","avatar_url":"https://github.com/basilfx.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phalcon-JobQueue\nPHP job queue for asynchronous tasks within the Phalcon Framework.\n\n## Introduction\nPhalcon has support for [Beanstalkd](http://kr.github.io/beanstalkd/), but it requires an broker to run jobs.\n\nThis is a different implementation that runs within the same environment. It has support for synchronous mode.\n\nTo add a job:\n\n```php\n$this-\u003ejobQueue-\u003eadd(new Job(\"sayHello\", [\n    \"name\" =\u003e \"World\"\n]));\n```\n\nBelow is an example of an executor service:\n\n```php\n\u003c?php\n\nnamespace My\\Services;\n\nuse Phalcon\\Di\\Injectable;\n\nuse BasilFX\\JobQueue\\ExecutorInterface;\nuse BasilFX\\JobQueue\\Queue;\nuse BasilFX\\JobQueue\\Job;\n\nclass JobExecutor extends Injectable implements ExecutorInterface\n{\n    public function execute(Queue $queue, Job $job, $update)\n    {\n        ($queue);\n\n        $action = $job-\u003egetAction();\n        $parameters = $job-\u003egetParameters();\n\n        if ($action === \"sayHello\") {\n            echo \"Hello, {$parameters[\"name\"]}!\";\n\n            $job-\u003esetResult(\"Done.\");\n            $job-\u003esetProgress(100);\n\n            $update($job);\n        }\n    }\n}\n```\n\n## Requirements\n* PHP 7.0 or later.\n* Phalcon Framework 3.0 or later.\n\n## Installation\nInstall this dependency using `composer require basilfx/phalcon-jobqueue`.\n\n## License\nSee the `LICENSE` file (MIT license).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasilfx%2Fphalcon-jobqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasilfx%2Fphalcon-jobqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasilfx%2Fphalcon-jobqueue/lists"}