Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

platformsh/example-reactphp

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React PHP Websocket example for Platform.sh

This branch shows how to setup a simple chat server using React PHP and the Ratchet websocket library on Platform.sh. It is very closely based on this tutorial from SitePoint.com.

Starting a new project

To start a new project based on this template, follow these 3 simple steps:

  1. Clone this repository locally. You may optionally remove the origin remote or remove the .git directory and re-init the project if you want a clean history.

  2. Create a new project through the Platform.sh user interface and select "Import an existing project" when prompted.

  3. Run the provided Git commands to add a Platform.sh remote and push the code to the Platform.sh repository.

That's it! Now visit your site in 2 separate browser windows and enter a chat name. You'll be able to enter a message on one window and have the message immediately appear in the other.

Using as a reference

You can also use this repository as a reference for your own projects, and borrow whatever code is needed. The most important parts are the .platform.app.yaml file and the .platform directory.

About

A skeleton React PHP application for Platform.sh. For demonstration purposes only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.