Ivo Petkov
Founder of Bear CMS and Alle.bg
Creator of Bear Framework
Co-founder of a big family

Recent posts

How I improved the performance of my big PHP web project
Ivo Petkov
In this article, I'll talk about the single architecture approach that improved the most the performance of Bear CMS (it's a content management system I work on) and made me confident about its future updates. I have to admit that designing and optimizing systems is more like a passion for me than just a job, but I can also see the benefits this brings when running such systems on a high scale (CPU cycles can be costly and user time is too valuable to waste).
Reading locked files in PHP
Ivo Petkov
I hope that you are already familiar with the awesome file locking mechanism that PHP and your OS provide. If not, here is a  ...
Advanced PHP: 7 useful techniques that are rarely used
Ivo Petkov
In human languages, not all words are equally used, but they all have a purpose and unique power. The same is true for programming languages. A big part of the code we write is just variables, functions, classes, and loops. They are part of the basics you need to know to get your application done. Today I am not going to talk about them. Instead, I'll show you some of the PHP techniques I rarely use but have great impact.

Let's get started.
Install PHP and Apache from source
Ivo Petkov
Installing software in Linux using a package manager is easy as typing "yum install the-name-of-the-thing". But sometimes you want to make deep customizations or make multiple installations of the same software (different PHP or Apache httpd versions for example). Then the only thing you can do is install the software from its source, and this is not that easy. In the following lines you will learn how to install PHP (with PHP-FPM and OPcache) and Apache from source code.
A better HTML5 parser for PHP
Ivo Petkov
HTML and PHP have existed for a long time, and one of the main use cases for PHP is to render HTML. Unfortunately, it is not that easy to parse and modify HTML in PHP, especially HTML5. That's why I created a simple library that will help you do that, and more, easily. It extends PHP's native DOMDocument library, so it is very familiar to use. DOMDocument is a very powerful library, but it doesn't work quite well with HTML5. So, meet HTML5DOMDocument - an open source library that extends DOMDocument, fixes some issues and adds some functionality.