Blog
Building ReactPHP Memcached Client: Making Requests And Handling Responses
09 Oct 2017
This is the first article from the series about building from scratch a streaming Memcached PHP client for ReactPHP ecosystem. The library is already released and published, you can find it on GitHub. Before writing any code we should think...
READ MOREUnderstanding ReactPHP Event Loop Ticks
25 Sep 2017
What Is Tick? Tick is one loop iteration where every callback in the queues has been executed synchronously and in order. ReactPHP event loop implementation has a method to schedule a callback to be invoked on a future iteration of...
READ MOREPromise-Based Cache With ReactPHP
15 Sep 2017
In the previous article, we have already touched caching (when caching DNS records). It is an asynchronous promise-based Cache Component. The idea behind this component is to provide a promise-based CacheInterface and instead of waiting for a result to be...
READ MOREResolving DNS Asynchronously With ReactPHP
03 Sep 2017
Basic Usage It is always much more convenient to use domain names instead of IPs addresses. ReactPHP DNS Component provides this lookup feature for you. To start using it first you should create a resolver via factory React\Dns\Resolver\Factory. Its create()...
READ MORECancelling ReactPHP Promises With Timers
22 Aug 2017
The Problem At first, let’s refresh in memory what is Promise. A promise represents a result of an asynchronous operation. You can add fulfillment and error handlers to a promise object and they will be invoked once this operation has...
READ MOREManaging Child Processes With ReactPHP
07 Aug 2017
ReactPHP Child Process Component enables an access to Operating System functionalities by running any system command inside a child process. We have access to that child process input stream and can listen to its output stream. For example, we can...
READ MOREMaking Asynchronous HTTP Requests With ReactPHP
26 Jul 2017
The Problem We need to perform batches of HTTP requests. For example, we need to download several video files. We can start downloading them one by one, but it will take a lot of time since we need to wait...
READ MOREBuilding Video Streaming Server with ReactPHP
17 Jul 2017
In this article, we will build a simple asynchronous video streaming server with ReactPHP. ReactPHP is a set of independent components which allows you to create an asynchronous application in PHP. ReactPHP Http is a high-level component which provides a...
READ MORESingleton: Anti-Pattern Or Not
11 Jul 2017
Definition — “Do you know any Singleton jokes?” — “Just one.” Singleton is one of the simplest patterns to understand. The main goal of it is to limit the existence of only one instance of the class. The reason for...
READ MOREUDP/Datagram Sockets with ReactPHP
05 Jul 2017
Streams vs Datagrams When you send data through the sockets, there are situations when you really do not care if some packets are lost during the transition. For example, you are streaming a live video from your camera. The order...
READ MOREBuild A Simple Chat With ReactPHP Socket: Client
24 Jun 2017
Video In the previous article, we have created a simple chat server based on ReactPHP Socket component. We have used a telnet client to connect to this server, now it’s time to create our own PHP client, also based on...
READ MOREBuild A Simple Chat With ReactPHP Socket: Server
22 Jun 2017
Video In this article, we are going to build a simple chat server based on ReactPHP Socket Component. With this component, we can build simple async, streaming plaintext TCP/IP or a secure TLS socket server. Socket A socket is one...
READ MOREEvent-Driven PHP with ReactPHP: Promises
16 Jun 2017
Video Promises ReactPHP Promise Component The Basic Concepts A promise represents a value that is not yet known while a deferred represents work that is not yet finished. A promise is a placeholder for the initially unknown result of the...
READ MOREEvent-Driven PHP with ReactPHP: Streams
12 Jun 2017
Video Streams ReactPHP Stream Component In PHP streams represent a special resource type. The description given in php.net documentation: Streams are the way of generalizing file, network, data compression, and other operations which share a common set of functions and...
READ MOREEvent-Driven PHP with ReactPHP: Event Loop And Timers
06 Jun 2017
Video What is ReactPHP The Problem PHP was born in the 90s and was a very powerful tool for creating web pages. From its born it has a synchronous run-time, that means that we start execution of some function, and...
READ MORERECENT POSTS
- Myths About Asynchronous PHP: It Is Not Truly Asynchronous
- DriftPHP: Quick Start
- ReactPHP Internals: Event Loop Timers
- Interview with Marc Morera: About DriftPHP
- Introducing PHP-Watcher
- Live Reloading PHP Applications With Nodemon
- Building a RESTful API Using ReactPHP: JWT Authentication
- Building a RESTful API Using ReactPHP: Basic Authentication
- Building a RESTful API Using ReactPHP and MySQL
- How To Speed Up The Code Review
- Managing Concurrency: From Promises to Coroutines
- Fast Web Scraping With ReactPHP: Download All Images From a Website
- PHP Roundtable 76: Concurrency, Generators & Coroutines - Oh My!
- Fast Web Scraping With ReactPHP. Part 3: Using Proxy
- Sending Email Asynchronously With ReactPHP Child Processes
- Fast Web Scraping With ReactPHP. Part 2: Throttling Requests
- Using Router With ReactPHP Http Component
- Working With FileSystem In ReactPHP
- Amp Promises: From Generators To Coroutines
- Fast Web Scraping With ReactPHP