{"id":18498547,"url":"https://github.com/zircote/service_bayuex","last_synced_at":"2025-07-14T08:07:48.786Z","repository":{"id":66126322,"uuid":"2121294","full_name":"zircote/Service_Bayuex","owner":"zircote","description":"A Zend Framework Bayuex Client","archived":false,"fork":false,"pushed_at":"2011-07-29T14:55:45.000Z","size":100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T05:27:22.649Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/zircote.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":"2011-07-28T23:20:39.000Z","updated_at":"2013-12-16T01:20:56.000Z","dependencies_parsed_at":"2023-02-19T22:55:23.634Z","dependency_job_id":null,"html_url":"https://github.com/zircote/Service_Bayuex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zircote/Service_Bayuex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FService_Bayuex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FService_Bayuex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FService_Bayuex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FService_Bayuex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/Service_Bayuex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FService_Bayuex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262545,"owners_count":23736411,"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-06T13:41:10.233Z","updated_at":"2025-07-14T08:07:48.762Z","avatar_url":"https://github.com/zircote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\n### Publishing\n```php\n\u003c?php\n$b = new Zirc_Service_Bayuex(array('url' =\u003e 'http://127.0.0.1:8080/cometd'));\n// Send Multiple messages\n$payload = array(\n    array('channel' =\u003e '/chat/demo',\n          'data' =\u003e array ('user' =\u003e 'zircote','chat' =\u003e 'test1')\n    ),\n    array('channel' =\u003e '/chat/demo',\n          'data' =\u003e array ('user' =\u003e 'zircote','chat' =\u003e 'test2')\n    ),\n    array('channel' =\u003e '/chat/demo',\n          'data' =\u003e array ('user' =\u003e 'zircote','chat' =\u003e 'test3')\n    )\n);\n$b-\u003epublish($payload);\n\n// Send Single Message\n$b-\u003epublish('/chat/demo',array('user' =\u003e 'zircote', 'chat' =\u003e 'single message'));\n\n```\n\n### Subscribing and polling\n```php\n\u003c?php\n$b = new Zirc_Service_Bayuex(array('url' =\u003e 'http://127.0.0.1:8080/cometd'));\n$b-\u003esubscribe(array('/chat/demo', '/some/test/'));\n$o = 0;\nwhile ($data = $b-\u003econnect('/chat/demo')){\n    $data = Zend_Json::decode($data, Zend_Json::TYPE_OBJECT);\n    foreach ($data as $m) {\n        if($m-\u003edata){\n            print_r( $m-\u003edata );\n        }\n    }\n    usleep(100);\n    if (++$o == 1000000) {\n        exit;;\n    }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fservice_bayuex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Fservice_bayuex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fservice_bayuex/lists"}