Develop with PHP on GitHub Codespaces
Github codespaces are pretty darn good for development. Including free 120 hours it is amazing. Inside it is docker-compose run somewhere in the cloud. it integrates very well with VS Code, sure it ...
Asynchronous requests with RxHTTP

Asynchronous programming is very popular nowadays, mostly popularized by Javascript in Node.JS. Having single thread in Javascript leaves no way to do parallel things. Same picture is in PHP, where request is handled by single process or thread.

Good news is that PHP is not years behind. There are already async extensions and libraries, for example ReactPHP.

Our goal can easily be reached using ReactPHP based on callbacks or promises, but I want to add more magic with RxPHP. It is outstanding approach to solve daily tasks in a way you might never thought before.

So let's describe ultimate goals and move on:  Efficially query remote Rest API via HTTP GET.

How I use Wordpress with Git and Composer

Amazing approach!

Discover PHP bottlenecks with Xdebug or why my site is so slow

In this article you will learn about the possible use xdebug by system administrators of web-servers.

If you administer a web-server,  often face problems that ordinary users of the site called "slow" or "dead-slow" Of course, this is a very important issue that could have serious financial consequences for the website owner. This formulation is sufficient to begin the investigation.

Reading directory list - new PHP5 way

It has been long time for using opendir, readdir functions or even scandir for reading directory listing from the disk.  Even myself still using it when in need.

Its time to update your snipped library with new PHP5 object oriented code. This is definitely not a new new thing, but still I want to make an article on it to attract more users to use this feature.

How to connect to rare databases in PHP (informix, oracle, db2)

Recently I took part in integration project and faced interesting problem. PHP application that I deploy must communicate with Informix database for data selecte. This php application aims to corporate market, so its not a extraordinary case. I see that it may require connecto to Oracle or DB2 in near future.

Yes, PHP itself has wide choose of database connectors, which is a good option to have native database support. The only problem is that most of them are used so rare that are usualy not compiled in all modern Linux destributos. For example in Ubuntu server 12.04 there are five most pupular php5-sybase php5-interbase php5-mssql php5-mysql php5-pgsql.

Thinking of it, I found one interesting solution.

PHP, HTML, CSS, JavaScript editor (IDE) - Codelobster PHP Edition

# This is advertising post

clphped

Making any form AJAX - The easy way

Forms, forms, forms... This is essential part of the Web and probably main reason why servers-side technology like Perl, PHP appeared. But things didn't change much from the time I wrote my first Form handler using PHP3.0.18.

In this post I want to share some of my tricks of handling forms. Yes, it requires JavaScript enabled, which, truly speaking, is already a must have for 99.99% of sites for a long time.

Big advantages is that it really simplifies things on client and server side. Welcome reading...

Settings link in Wordpress plugin

To be clear what I am talking about see the image below. It has nice Settings link which leads to plugin settings  from plugin list.

Why I think this is important? Usually plugin creates new submenu in Settings, but sometimes it uses different name and it is not easy to find one. In case 20+ plugins are installed, which is a real case, it is not easy to remember where all these settings are stored.

I consider Settings link  as a must have thing when developing plugin and its pretty easy to add it, see below

Using layout pattern with CodeIgniter

CodeIgniter is great framework by its simplicity. But when I moved from CakePHP, I really missed layout pattern.

CodeIgniter documentations offers this way to include non-changing site header and footer

$this->load->view('header');
$this->load->view('template'); 
$this->load->view('footer');

For sure it isn't flexible and does not show page structure in a clear way. For many years I use layout pattern. Layout describes whole page as a template with blocks for header, menu, content, etc like on figure below. On page rendering these blocks are filled with data.

I found a small code snipped for CI and improved it. You are welcome to try!