Skip to content
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.

mfrederico/weird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WEIRd

WebSockets + Interface + RedbeanPHP = WEIRd

See it here

http://cyberteknix.com/weird/

What is WEIRd?

Weird is a proof of concept REAL TIME pub/sub mechanism inspired by METEOR that uses the mutable database ORM provided by RedBeanPHP combined with HTML5 websockets provided by ReactPHP.org

  • Right now it acts like a simple stack, with SET, GET, POP, DELete and SUBscribe
  • It also allows for "collections" of data (basically just tables)

WHY?

  • I wanted to dig into event driven PHP a bit more, and play with websockets.
  • I really like RedBeanPHP. it's genius.

How to start the example

  • first, run the server - # php server.php
  • browse to index.html
  • click "Connect" (should turn green!)
  • Add a couple of items to the provided collection "book" by typing it into the form and clicking "Add Record"
  • Open a second browser window and click connect
  • In the second browser click "list" under actions, you should see your data
  • If you specify the ID in the ID field, and click "SUB" whenever you update the data of that particular subscription, it will automatically push the changes to all subscribers.

Gotchas and NOTES

  • Right now it is proof of concept, and does not currently support multi-select or multiple checkboxen.
  • Only tested on FF and Chrome on LINUX.
  • Not documented well for consumption

About

WebSockets + Interface + RedbeanPHP = WEIRd

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages