{"id":92865,"library":"react-datagram","title":"ReactPHP Datagram","description":"Event-driven UDP datagram socket client and server for ReactPHP","status":"active","version":"1.10.0","language":"php","source_language":null,"source_url":"https://github.com/reactphp/datagram","tags":["udp","reactphp","async","networking"],"install":[{"cmd":"composer require react/datagram","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Factory","correct":"use React\\Datagram\\Factory;"}],"quickstart":{"code":"use React\\Datagram\\Factory;\n\n$loop = React\\EventLoop\\Loop::get();\n$factory = new Factory($loop);\n$factory->createServer('0.0.0.0:9999')->then(function ($server) {\n    $server->on('message', function ($data, $address) {\n        echo \"Received: $data from $address\\n\";\n    });\n});\n$loop->run();","lang":"php","description":"Create a UDP server that listens on port 9999."},"warnings":[{"fix":"Ensure you have react/event-loop installed and use an event loop.","message":"Requires ReactPHP event loop; not suitable for synchronous code.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'async':16 'client':9 'datagram':2,7 'driven':5 'event':4 'event-driven':3 'network':17 'reactphp':1,13,15 'server':11 'socket':8 'udp':6,14","created_at":"2026-06-19T09:39:15.991170+00:00","updated_at":"2026-06-19T09:39:15.991170+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/reactphp/datagram","github":"https://github.com/reactphp/datagram","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["networking","async"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}