# Multiplayer phaser2 + php

**URL:** <https://phaser.discourse.group/t/multiplayer-phaser2-php/14303>\
**Category:** Phaser 2 / CE\
**Created:** [May 8, 2024, 9:15am UTC](https://phaser.discourse.group/t/multiplayer-phaser2-php/14303 "2024-05-08T09:15:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drago73](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/drago73/32/7188_2.png) [@drago73](https://phaser.discourse.group/u/drago73)\
**Post date:** [May 8, 2024, 9:15am UTC](https://phaser.discourse.group/t/multiplayer-phaser2-php/14303/1 "2024-05-08T09:15:38Z")

</div>

hi, is possible make a multiplayer in phaser2 using php?

---

<div class="post-metadata">

**Author:** ![8Observer8](https://avatars.discourse-cdn.com/v4/letter/8/bbe5ce/32.png) [@8Observer8](https://phaser.discourse.group/u/8Observer8)\
**Post date:** [May 8, 2024, 12:36pm UTC](https://phaser.discourse.group/t/multiplayer-phaser2-php/14303/2 "2024-05-08T12:36:43Z")

</div>

You can write casual games in PHP, such as checkers or chess. But, for example, for a platformer you will need server-side physics. Better take Node.js, JavaScript and WebSockets: [ws - npm](https://www.npmjs.com/package/ws) I have a simple example on the free hosting “Glitch” that uses [Box2D-WASM](https://github.com/Birch-san/box2d-wasm) and controls the client’s gravity value: [Glitch :･ﾟ✧](https://glitch.com/edit/#!/merciful-regal-soursop) You can upload projects to Glitch from the GitHub repository automatically after `git push` to GitHub repository. The Glitch is free hosting. If no one accesses your application for 15 minutes, it goes into sleep mode. It wakes up within 15–20 seconds.
