Blog
Fast Web Scraping With ReactPHP. Part 2: Throttling Requests
19 Mar 2018
Web scraping relies on the HTML structure of the page, and thus cannot be completely stable. When HTML structure changes the scraper may become broken. Keep this in mind when reading this article. At the moment when you are reading...
READ MOREUsing Router With ReactPHP Http Component
13 Mar 2018
Router defines the way your application responds to a client request to a specific endpoint which is defined by URI (or path) and a specific HTTP request method (GET, POST, etc.). With ReactPHP Http component we can create an asynchronous...
READ MOREWorking With FileSystem In ReactPHP
27 Feb 2018
I/O operations in the filesystem are often very slow, compared with CPU calculations. In an asynchronous PHP application this means that every time we access the filesystem even with a simple fopen() call, the event loop is being blocked. All...
READ MOREAmp Promises: From Generators To Coroutines
15 Feb 2018
Generators Generators become available in PHP since version 5.5.0. The main idea is to provide a simple way to create iterators but without creating a class that implements Iterator interface. A generator function looks like a normal function, except that...
READ MOREFast Web Scraping With ReactPHP
12 Feb 2018
Video Web scraping relies on the HTML structure of the page, and thus cannot be completely stable. When HTML structure changes the scraper may become broken. Keep this in mind when reading this article. At the moment when you are...
READ MOREAsynchronous PHP: Why?
02 Feb 2018
Video What is ReactPHP Asynchronous programming is on demand today. Especially in web-development where responsiveness of the application plays a huge role. No one wants to waste their time and to wait for a freezing application, while you are performing...
READ MOREDoes Static Factory Violate Open/Closed Principle?
25 Jan 2018
Consider an application that provides some statistics reports. Reports are present in different formats: JSON for API, HTML for viewing in a browser and pdf for printing on the paper. It has StatisticsController that receives a required format from the...
READ MOREIntroduction To Amp Event Loop
19 Jan 2018
Event Loop All asynchronous magic would be impossible without Even loop. It is the core of any asynchronous application. We register events and handlers for them. When an event is fired the event loop triggers an appropriate handler. This allows...
READ MOREManaging ReactPHP Promises
16 Jan 2018
Asynchronous application is always a composition of independently executing things. In concurrency, we are dealing with a lot of different things at once. You can compare it with I\O driver in your OS (mouse, keyboard, display). They all are managed...
READ MORETest Coverage: Integration Between CodeClimate and Travis CI
11 Jan 2018
When you maintain an open-source project it is considered a good practice to have a high test coverage, so the community can feel safe about using your code in their projects. There are some services that can analyze your code...
READ MOREReactPHP HTTP Server Middleware
20 Dec 2017
What is middleware? What exactly is middleware? In real application when the request comes to the server it has to go through the different request handlers. For example, it could be authentication, validation, ACL, logging, caching and so on. Consider...
READ MOREReactPHP PromiseStream: From Promise To Stream And Vice Versa
07 Dec 2017
ReactPHP PromiseStream Component is a link between promise-land and stream-land From Stream To Promise One of the patterns that are used to deal with streams is spooling: we need the entire resource data available before we start processing it. One...
READ MOREBuilding ReactPHP Memcached Client: Unit-Testing Promises
20 Nov 2017
This is the last 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. In the previous article, we have completely...
READ MOREBuilding ReactPHP Memcached Client: Emitting Events
03 Nov 2017
This is the third 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. In the previous article, we have faced with...
READ MOREBuilding ReactPHP Memcached Client: Errors And Connection Handling
14 Oct 2017
This is the second 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. In the previous article, we have created...
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