{"id":36239128,"url":"https://github.com/tectiv3/libdaemon","last_synced_at":"2026-01-11T06:42:11.370Z","repository":{"id":57066315,"uuid":"66227221","full_name":"tectiv3/libdaemon","owner":"tectiv3","description":"Yet another php daemon library","archived":false,"fork":false,"pushed_at":"2016-08-22T00:30:32.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-07-16T01:46:35.957Z","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/tectiv3.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}},"created_at":"2016-08-22T00:22:47.000Z","updated_at":"2023-07-16T01:46:35.958Z","dependencies_parsed_at":"2022-08-24T14:54:00.639Z","dependency_job_id":null,"html_url":"https://github.com/tectiv3/libdaemon","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/tectiv3/libdaemon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flibdaemon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flibdaemon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flibdaemon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flibdaemon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tectiv3","download_url":"https://codeload.github.com/tectiv3/libdaemon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Flibdaemon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28295756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"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":"2026-01-11T06:42:10.811Z","updated_at":"2026-01-11T06:42:11.365Z","avatar_url":"https://github.com/tectiv3.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yet another PHP daemon lib\n\nCreate and run php daemon with custom workers\n\n## Installation\n\n**Installation**\n\n`composer require tectiv3/libdaemon`\n\n## Define workers and run your daemon\n\n**Define workers**\n\n```\nuse Daemon\\Worker;\n\nclass ExampleWorker extends Worker {\n\tfunction run_cycle() {\n\t    echo \"I'm a work horse!\\n\";\n    }\n}\n```\n\n**Create config**\n\n```\n[default]\n    logfile = \"daemon.log\"\n    pidfile = \"daemon.pid\"\n    daemonize = true\n    worker_class = \"ExampleWorker\"\n    max_children = 2\n```\n\n**Run daemon**\n\n```\n    $master = new Master('config.ini', 3600); //restart workers every hour\n    $master-\u003estart();\n```\n\n## Examples\n\nExamples can be found in the `examples/` folder","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Flibdaemon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftectiv3%2Flibdaemon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Flibdaemon/lists"}