By using both the Symfony and the ReactPHP components, you’ll build a promises based PHP application that will blow your mind. After this workshop, 1 millisecond will seem something to overcome.
Content & Process
Building an application on top of Symfony is a really nice experience. We’ve used to working with Bundles, extending our application logic, and we’re comfortable with that, so… what would we change? Well. I could have an answer for that. What if we want to build our domain on top of ReactPHP promises? What if we want to build non-blocking code? In that case, Symfony is not your framework, basically because Symfony kernel will not allow you to work with these promises.
With that premise, a new framework called DriftPHP was born some time ago, aiming to rewrite the Symfony kernel, using the same event-based and bundled architecture, and providing all missing and needed pieces for the most suitable performance experience in PHP.
In this workshop we will
– Checkout the framework. Structure, configuration and a simple "Hello world" setup.
– Pose a simple (but representative) example, with a Promises and hexagonal architecture based domain
– Implement our domain with tests, explaining the main differences between working with Promises and regular PHP code
– Implement a Mysql adapter by using the ReactPHP doctrine based DBAL. Everything will look so familiar to you.
Audience & Requirements
Symfony minimum acknowledge will be nice, but is not required. A php7.4 / php8.0 installations is needed with the PCNTL extension installed and enabled.