You’ve probably been to a couple talks, about how to do “asynchronous things” with PHP. What the experts don’t tell you is that the hard part starts when you need to build an application.

Sure, there are tools for starting an HTTP server or connecting to a web socket. But what about when you need to write to a database or send an email. You go searching for good tutorials, and all you get is API documentation; about how to use each component in isolation.

Say goodbye to that frustration. In this workshop, I’m going to show you how to build an entirely asynchronous, high-concurrency PHP application. We’ll bring those isolated components together, to build a real application.

Some topics we’ll cover:

HTTP servers and routing
Watching for file changes, and restarting the server daemon
Understanding generators and promises
Adding new and useful syntax (to the PHP language) for async applications
Testing asynchronous code
Working with databases
Validating request parameters and formatting responses
Making requests to the server (including CORS)
Connecting through web sockets
Forking and multithreading
Reading and writing files
Deploying and hosting, with TLS


WHAT YOU’LL NEED TO BRING FOR THE TUTORIAL
Participants will need to have a working version of PHP 7.1+ and MySQL installed on their computer. Without it, they will not be able to code along. Virtualisation and/or setup time is NOT included in the workshop schedule, but I am happy to meet with individuals before/after the workshop to help them get things set up.

Comments

Comments are closed.

Very interesting tals. Everything was clear but the attention went too much to coding. Maybe a small repository on github. This way you can go into more detail, and there is more time to discuss different use cases. However, I am very curious about your book.

sorry I mean talk not tals. ;-)

Stef Liekens at 20:29 on 27 Jan 2018

Interesting subject and very hands on workshop. Maybe you could setup a repository with code snippets to configure that watcher thing.

Christopher Pitt (Speaker) at 21:13 on 27 Jan 2018

I have added a link to the source code (above).

Bart Reunes at 08:32 on 29 Jan 2018

Very interesting workshop. Not too fast, not too slow. Might be interesting to setup a repository with the code base, so typing everything doesn't distract that much from what you are explaining.

Robin Brackez at 11:28 on 29 Jan 2018

I think there should have been a brief introduction in the beginning about what exactly Async Applications are, and the subjects we're about to cover. (I have to add that I originally subscribed to another course that got cancelled last minute, so I was left a bit in the dark at first). I also agree with the other reviewers that the code snippets should have been downloadable. I can type code and I can listen, but I can't do both at the same time :)
As for the rest, it was an interesting workshop.