PHP class to encapsulate the Janus WebRTC REST API
Have a look at JanusTest.php for a sample of connecting, attaching and creating a video room followed by detach and disconnect. It should be self explanatory if you have worked with janus.js before.