About the Bundle
Learning Event-Driven PHP With ReactPHP
A lot has changed since PHP was used only for rendering web-pages. Now PHP is something more than a simple script, which is used to render a web page in a request-response cycle. The event-driven architecture and asynchronous I/O processing of any number of streams in real time allow you to build a whole new category of applications. This book covers everything you should know about creating asynchronous applications in ReactPHP. We start with the basics, such as an event loop, timers, and streams. And then gradually we will move to more advanced topics and real applications examples. ReactPHP has a great set of components and a real ecosystem of third-party libraries.
The book covers all ReactPHP core components with theory and code examples to give you a solid basis to build your own asynchronous application for your own use-case. If you have always written PHP applications in a traditional synchronous way, it will be an eye-opening book for you.
Also, I'm going to keep this book up-to-date with ReactPHP releases. That means that when a new feature comes out or something becomes deprecated or even removed, the book will also reflect these changes and will be republished and you will receive these updates for free!
ReactPHP for Beginners
The main purpose of this book is to get you started with developing asynchronous applications in PHP. I will show you that PHP is much more than run the script, execute some code and die. You will be amazed by the way your familiar PHP language can be used! The asynchronous model will definitely expand the way you think about PHP.
In fact, there is no need to learn a new language when you need to write some asynchronous stuff just because someone blames PHP that it is not a right tool. You can create asynchronous applications in PHP and this book will show you how.
It will be a step by step guide to building an asynchronous PHP application.
Building RESTful API With ReactPHP
REST is the most widespread and effective standard to develop APIs for internet services. When building RESTful services, it is really important to choose the right framework. If you are a PHP developer and performance is critical for you, ReactPHP with its asynchronous, event-driven architecture, is exactly the right choice for building RESTful APIs. This book explains in detail how to create your own RESTful API in asynchronous PHP that can be consumed by other users in your organization.
This book will teach you to create rich RESTful applications based on ReactPHP components. You will begin by understanding the key principle that makes an HTTP application a RESTful. After writing a simple HTTP server, you will create and a complete web application with routing and controllers; explore using MySQL database asynchronously to store data; get to grips with using self-descriptive responses. You’ll learn to set accurate HTTP status codes along with understanding how to keep your applications backward-compatible.
Also, while implementing a RESTful service, you will learn how to upload and service static files asynchronously in PHP. Lastly, you will explore some authentication techniques to secure your application. We will use JWT to secure some protected routes. The book will evolve chapter by chapter until it turns into a full-fledged and secure RESTful service.
This book is actually an abstract of my YouTube Creating a RESTful API with ReactPHP video series.
The Leanpub 45-day 100% Happiness Guarantee
Within 45 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers), EPUB (for phones and tablets) and MOBI (for Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.