{"id":19382517,"url":"https://github.com/bennyxguo/hprose-workerman","last_synced_at":"2025-10-26T04:06:12.028Z","repository":{"id":57072780,"uuid":"103236667","full_name":"bennyxguo/hprose-workerman","owner":"bennyxguo","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-14T03:08:54.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-07T06:45:13.782Z","etag":null,"topics":["composer-package","hprose","php","workerman"],"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/bennyxguo.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":"2017-09-12T07:22:23.000Z","updated_at":"2017-11-14T09:10:32.000Z","dependencies_parsed_at":"2022-08-24T10:52:17.125Z","dependency_job_id":null,"html_url":"https://github.com/bennyxguo/hprose-workerman","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fhprose-workerman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fhprose-workerman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fhprose-workerman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bennyxguo%2Fhprose-workerman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bennyxguo","download_url":"https://codeload.github.com/bennyxguo/hprose-workerman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240521051,"owners_count":19814694,"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":["composer-package","hprose","php","workerman"],"created_at":"2024-11-10T09:21:55.104Z","updated_at":"2025-10-26T04:06:07.000Z","avatar_url":"https://github.com/bennyxguo.png","language":"PHP","readme":"# Hprose and Workerman - MERGED!\n\nWorkerman is a framework for building multi-process servers in PHP. It allows you to build a Webserver or another kind of server - maybe for an API. Hprose is both, a protocol and RPC engine. It is modern, lightweight and amazingly fast. It's own serialization format supports objects, binary data and even more!\n\n## Introduction to Hprose\n\nHprose is a High Performance Remote Object Service Engine.\n\nIt is a modern, lightweight, cross-language, cross-platform, object-oriented, high performance, remote dynamic communication middleware. It is not only easy to use, but powerful. You just need a little time to learn, then you can use it to easily construct cross language cross platform distributed application system.\n\nHprose supports many programming languages, for example:\n\n- AAuto Quicker\n- ActionScript\n- ASP\n- C++\n- Dart\n- Delphi/Free Pascal\n- dotNET(C#, Visual Basic...)\n- Golang\n- Java\n- JavaScript\n- Node.js\n- Objective-C\n- Perl\n- PHP\n- Python\n- Ruby\n- ...\n\nThrough Hprose, You can conveniently and efficiently intercommunicate between those programming languages.\n\n## Usage\nInstall with composer\n```\ncomposer require tridiamond/hprose-workerman\n```\n\n### Example: Create a Hprose-based workerman setup\n```php\n\u003c?php\n# Standalone\nrequire_once \"Workerman/Autoloader.php\";\nrequire_once \"Hprose.php\"; # If you run the native PECL extension, you won't need this.\n\n# Using composer\nrequire_once \"vendor/autoload.php\";\n\n// Create the worker\n$host = \"127.0.0.1\";\n$port = 9999;\n$worker = new \\Workerman\\Hprose($host, $port);\n// Set options\n$worker-\u003ecount = 4;\n$worker-\u003ereloadable = true;\n\n// Add a function\nfunction hello($w) { return \"Hello, $w!\"; }\n$hprose = $worker-\u003ehprose();\n$hprose-\u003eaddFunction(\"hello\");\n\n// Start the Workerman framework, run the worker(s)...\n\\Workerman\\Worker::runAll();\n```\n\nYou now have a Workerman instance with 4 workers listening on your local port `9999`. This server balances requests upon processes and lets you scale your application.\n\n#### Note\nThis little module was originally coded by [Kevin Ingwersen (Ingwie Phoenix)](https://github.com/IngwiePhoenix), I have completely rebuilded it to make it more efficient and best of all **SUPPORTS latest Hprose and Workerman versions**.\n\n## License\nThis code is released by the standard MIT license.\n\n## Author\nThis little module was coded/modified by [TriDiamond](https://github.com/TriDiamond)\nHprose was originally developed by [Ma Bingyao](https://github.com/andot)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyxguo%2Fhprose-workerman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbennyxguo%2Fhprose-workerman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbennyxguo%2Fhprose-workerman/lists"}