Skip to content

Details

Garage code: 1930#

It is give-a-way month:
We are giving away two free tickets to Laracon Online (https://laracon.net/) on March 8 for you and one friend. Be sure to bring a friend to be entered to win!

We will also be giving away two free tickets to Squares Conference (http://squaresconference.com/) on April 26-28 in Grapevine, Texas. Be sure to bring a friend to be entered to win!

Talk Description:
You have data coming into your application in realtime. Your customer wants that shown on their app's dashboard. Sounds like AJAX and a JSON API to the rescue. Maybe if you're really clever a bit of Vue.js. Sure that could work, but would be terribly inefficient to be polling for data. You'll also likely get a 429 before the day is over.

So you take a look into the whole Socket.io and websockets in Javascript option. That too could work but you immediately feel like the elePHPant in the room not really sure how this Node.js stuff works. Every tutorial seems to be showing nothing but callback hell. No, you're definitely not comfortable doing that.

So what if we could get it all done in PHP and finally have that reactive, realtime, dashboard experience we've always wanted and our customers keep asking for? In "It's All PHP, I Promise" we explore just that and all in PHP– OK, so there's a bit of JavaScript for the browser side of things...

What You Will Learn
If you've ever wanted to know how to:

  • Get started with asynchronous programming in PHP
  • See PHP steal the browser's dirty little secret of event loops
  • Wrap synchronous PHP code with Promise objects to achieve asynchronocity
  • Use queues in Laravel for more than parallel execution
  • Communicate with end-to-end, distributed, event messages
  • Run your own websocket server in PHP
  • Write a long-running process and manage it with supervisord

...then this the meetup should not disappoint.

All topics will be presented at an entry level with no prior experience required. That said, if you take the time to read up on some of these packages then we can hit the ground running and demo more of the cool stuff. Experienced developers should still find plenty of nuggets to consider in their applications. We'll stick around for a bit to chat after too to keep the learning going.

Recommended Reading
Tutorials About Reactive Architecture (https://medium.com/async-php)
Example Code (https://github.com/reactphp/react/tree/master/examples)
ReactPHP Promise (https://github.com/reactphp/promise)
ReactPHP EventLoop (https://github.com/reactphp/eventloop)
ReactPHP Socket (https://github.com/reactphp/socket)
ReactPHP Child-Process (https://github.com/reactphp/child-process)
Ratchet Websockets (http://socketo.me)
Nginx Websocket Proxying (https://github.com/nicokaiser/nginx-websocket-proxy)
Javascript EventEmitter (https://github.com/Olical/EventEmitter)
Supervisord Manual (http://supervisord.org/configuration.html#program-x-section-settings)

Unashamed Plug
Lonestar PHP 2017 is going to be the last year for this awesome conference. If you find this meetup interesting, then you are encouraged to attend the "RealtimeDashboards With Async PHP" workshop (http://lonestarphp.com/sessions/#realtime-dashboards-with-async-php) where we'll go in more depth with a hands-on tutorial and demonstration of practical production use-cases including AWS Lambdas. There's also lots of other great talks on PHP and Laravel so get your ticket!

Get a Ticket for Lonestar PHP (http://lonestarphp.com)

If you have any questions on Laravel, app development, or the technology industry in DFW, this is the place to be! We look forward to seeing you.

Related topics

You may also like