Category Archives: Code

Using Swoole PHP 7.2 Docker image

We all read about Swoole in Laravel-news article, and the results they provided looks nice, this pushed me to create a new Docker image which has PHP 7.2 CLI and Swoole complied with it directly. In this article am going to show you how you can use it with a simple lumen application, and show […]

Installing PHP7.2 with brew on Mac, The new way

Now that homebrew has fully deprecated the old PHP channel and merged everything within the code, things have changed. Before you were able to install anything using a command like brew install php-<package> but now it won’t work anymore. The new way is simple and easy (not), so follow me: * First, you will need to […]

Two tips to speed up bitbucket pipelines

In the past few days, I was playing around with pipelines to see what can I do with it, and how much can I squeeze it to get as much as I can from the functionality they offer. And I wanted to point out to two main things that you can do to speed up […]

New Chatbot project for fun

In the past few days, I decided to try something new so I started to play with bots and created this nice little guy here. The idea of the project is simple, you ask him about the price of any crypto currency and he will reply back, you can even specify the equivalent currency that […]

Running Laravel Dusk tests on Bitbucket, the easy way

So today I was trying to run and see if I can manage to get Laravel dusk to run on Bitbucket pipelines, and after too many tests, I was able to do so \(^ ^)/. In this post I’ll explain the minimum requirements you need to do that, to make things simple, I created a […]

[snippet] Running Traefik with Docker Swarm

The other day, I wanted to try using Traefik in real world scenario where I’ll have a docker instance running and Traefik will do the routing/proxying based on the domain name that I will provide, sadly this was not so easy, so after few hours of searching I found the solution. You may ask, why it didnt […]

Run crontab within Alpinelinux Docker image

This post will explain how we can run cronjobs within Docker image based on Alpine Linux distribution, so am going to use my newest PHP 7.2 docker image, which you can find at zaherg/php-7.2-xdebug-alpine . First, we will have to pull the docker image using the command: Now that we have downloaded the image, we […]

Using Minio server for simulate S3 locally

The other day, I was building a small development environment for me to test Laravel and S3, but as usual, I didn’t want to use production credentials nor to use S3 directly, so after a small search I found Minio : Minio is an open source object storage server with Amazon S3 compatible API. Build cloud-native applications […]

[Tip] Connect to multiple databases on the Fly with Lumen

Its not always an easy way to connect to different database if the configuration files does not include any information about it, in older version it was even a tricky one, especially if you have a bit of relationship that you want to use. Don’t understand from my words that you cant do that, but […]

How to run Kong servers with SystemD

Kong is one of my favourite projects, I do like it and keep pushing my current company and most of who I know to use it. So today I’ll talk about installing version 0.10.x and how to run it automatically via SystemD on Ubuntu 16.04. Let’s talk about installing Kong, basically, we have two steps: First, […]