{"id":27117104,"url":"https://github.com/a904guy/multiphreading","last_synced_at":"2025-04-07T05:54:01.177Z","repository":{"id":30205441,"uuid":"33756380","full_name":"a904guy/MultiPhreading","owner":"a904guy","description":"PHP Multi Process Threading, Shared Memory Berkley Keystore, Message Queue system.","archived":false,"fork":false,"pushed_at":"2015-08-04T13:35:28.000Z","size":144,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-10-20T15:58:56.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://hawkins.tech/","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/a904guy.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":"2015-04-11T00:17:00.000Z","updated_at":"2023-07-08T08:30:04.000Z","dependencies_parsed_at":"2022-09-07T18:31:56.134Z","dependency_job_id":null,"html_url":"https://github.com/a904guy/MultiPhreading","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a904guy%2FMultiPhreading","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a904guy%2FMultiPhreading/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a904guy%2FMultiPhreading/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a904guy%2FMultiPhreading/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a904guy","download_url":"https://codeload.github.com/a904guy/MultiPhreading/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601457,"owners_count":20964864,"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":"2025-04-07T05:54:00.552Z","updated_at":"2025-04-07T05:54:01.164Z","avatar_url":"https://github.com/a904guy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MultiPhreading\nPHP Multi Process Threading, Shared Memory Berkley Keystore, Message Queue system.\n\n## Example of all above\n```\ninclude \"lib/Threading.php\";\nuse \\MultiPhreading\\Threading;\nuse \\MultiPhreading\\Runnable;\nuse \\MultiPhreading\\SharedMemory;\nuse \\MultiPhreading\\SharedQueue;\nclass testRunnable implements Runnable {\n\tfunction run() {\n\t\techo \"\\nHello, This is threaded speaking.\";\n\t\techo \"\\nReading From SharedMemory\";\n\t\t$sham = new SharedMemory('MSQ');\n\t\techo \"\\nHello \".$sham-\u003eHello;\n\t\techo \"\\nAndy \".json_encode($sham-\u003eAndy);\n\t\t$msq = new SharedQueue();\n\t\techo \"\\nReading Queue. Total Messages: \".$msq-\u003esize();\n\t\tforeach($msq-\u003efetch() as $msg)\n\t\t{\n\t\t\techo \"\\n\".$msg;\n\t\t\tbreak;\n\t\t}\n\t\tsleep(300);\n\t\techo \"\\nHanging up\\n\\n\";\n\t}\n}\necho \"\\nStuffing SharedMemory.\";\n$sham = new SharedMemory('MSQ');\n$sham-\u003eHello = 'World';\n$sham-\u003eAndy = ['Rocks'];\n$msq = new SharedQueue();\nforeach(range(1,3) as $n)\n\t$msq-\u003epublish('Threaded Queue Message: '.$n);\necho \"\\nStarting Thread\";\nThreading::run(new testRunnable());\nThreading::run(new testRunnable());\nThreading::run(new testRunnable());\necho \"\\nHello, This is master, Are you there thread?\";\nsleep(1);\necho \"\\n\"; passthru('ps aux | grep php | grep test');\nsleep(300);\necho \"\\nHanging up\\n\\n\";\nexit();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa904guy%2Fmultiphreading","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa904guy%2Fmultiphreading","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa904guy%2Fmultiphreading/lists"}