Blog
Myths About Asynchronous PHP: It Is Not Truly Asynchronous
03 Mar 2021
Recently I had a lot of discussions about performance in PHP. Even though we have PHP 8, JIT, and all other improvements, people still continue complaining about PHP. That it is a language only for the request-response circle. That PHP...
READ MOREDriftPHP: Quick Start
08 May 2020
Idea and Architecture Let’s imagine that you are building a high-performance PHP application. Speaking of me previously I had two options: either use Symfony or ReactPHP. And to tell the truth, both solutions have their one pros and cons. With...
READ MOREReactPHP Internals: Event Loop Timers
01 May 2020
For many of you, ReactPHP and especially its EventLoop component looks like magic. We know that it handles concurrency, but the way it works inside is a sort of black box. In these tutorials I want to dig into it,...
READ MOREInterview with Marc Morera: About DriftPHP
14 Feb 2020
Recently I interviewed Marc Morera. He is an author of DriftPHP - a new asynchronous non-blocking framework on top of Symfony Components and ReactPHP. We discussed a new framework and how it became possible to make Symfony asynchronous and run...
READ MOREIntroducing PHP-Watcher
18 Oct 2019
The problem I like PHP for its simplicity: you code something, refresh the page in the browser and you can see your changes. There is no need to wait, to compile something, just refresh the page and you are ready...
READ MORELive Reloading PHP Applications With Nodemon
16 Sep 2019
When building a traditional web application in PHP we don’t care about reloading it. We make some changes in the source code, save it, then make the request in the browser or some other client and we can see these...
READ MOREBuilding a RESTful API Using ReactPHP: JWT Authentication
22 Apr 2019
Previously we have used Basic HTTP Authentication to protect our RESTful API. This authentication method is pretty simple, but in most cases, it can be used only in the internal network with server-to-server communication. For example, we can’t store Basic...
READ MOREBuilding a RESTful API Using ReactPHP: Basic Authentication
20 Apr 2019
In the previous article, we have created a RESTful API on top of ReactPHP HTTP server. Now we want to protect our API and add authentication. When it comes to securing a RESTful API things became interesting because a truly...
READ MOREBuilding a RESTful API Using ReactPHP and MySQL
18 Feb 2019
Today we will be looking at creating a RESTful API using ReactPHP, MySQL and nikic/FastRoute. Let’s look at the API we want to build and what it can do. Application We are going to build the API that: Handles CRUD...
READ MOREHow To Speed Up The Code Review
29 Dec 2018
How does the code review process look? You submit a request, then receive feedback, make some fixes, push them, then receive approval and the request is being merged. Sounds nice, right? But sometimes the review process can become really painful....
READ MOREManaging Concurrency: From Promises to Coroutines
26 Oct 2018
What does concurrency mean? To put it simply, concurrency means the execution of multiple tasks over a period of time. PHP runs in a single thread, which means that at any given moment there is only one bit of PHP...
READ MOREFast Web Scraping With ReactPHP: Download All Images From a Website
31 Aug 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 MOREPHP Roundtable 76: Concurrency, Generators & Coroutines - Oh My!
26 Jul 2018
Today was my first experience of being a guest on the podcast. Really excited about it! We had a very interesting discussion about asynchronous PHP, generators, and coroutines.
READ MOREFast Web Scraping With ReactPHP. Part 3: Using Proxy
20 Jun 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 MORESending Email Asynchronously With ReactPHP Child Processes
04 May 2018
Introduction In PHP the most of libraries and native functions are blocking and thus they block an event-loop. For example, each time we make a database query with PDO, or check a file with file_exists() our asynchronous application is being...
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