Photo by Stillness InMotion on Unsplash

Almost all web developers know what is Redis. Redis is used by many web applications because it has a great performance to store our data in key-value pair format. But not many developers are familiar with Swoole, especially when they’re not using PHP as their main language. What is Swoole? And how we compare it with the Redis?

High Performance Programmatic Server for PHP with Async IO, Coroutines and Fibers. https://www.swoole.co.uk

Swoole is a PHP package built with C, where it offers a lot of features. Especially with the asynchronous tasks. In traditional PHP, there’s no way we run the…


Docker Moby Color

Are you familiar with Docker? If so, you may already know that today, most of the web applications out there are being dockerized. That’s means, using Docker, it’ll be much easier for the applications to run on different devices, no matter what operating systems or environments we’re working on. Because Docker ensures the consistencies of your dependencies in one place. It starts with the development from your local machine, then maybe some integration tests in the middle of it, and finally publish your app into the production environment.

Imagine you’re developing your app in the Mac Operation System right now…


Photo by KOBU Agency on Unsplash

The most challenging part of being a web developer is to make sure that our app can be scalable enough for the company’s needs. Sometimes, the company needs us to build something fast with high quality, that capable of handling a lot of requests and its concurrencies.

Here’s the problem. When creating a website using traditional PHP, it doesn’t provide us something that makes our app run more efficiently, such as, the lack of asynchronous process. You’re right, there’s no asynchronous processing in PHP. If it does, definitely it’ll increase our web performance a lot. Mean, our app can handle…


Photo by Jake Givens on Unsplash

As we already know, the Laravel framework gives us abundant features. It also has a lot of packages that we can use to build our next great apps. But, here’s a question for yourself. Do you know how’s the lifecycle of Laravel works? This thing is important to us, as a developer, because if we understand how it works, we can be more understand what’s in here and what’s missing, and maybe we can extend the functionalities further.

Laravel lifecycle is pretty complicated to explain in this short article but, let me explain in this way. Every request that comes…


Photo by Ben on Unsplash

Right now, PHP is one of the most used programming languages in the web development world. Based on the survey from W3Techs here, PHP is used by 79.2% of all the websites in the world. This means, until today, PHP gets better and better in every aspect.

In November 2020, PHP 8 was released. A lot of new features & functionalities have been added, as well as optimizations and fixing some features that may lead to inconsistencies. In this article, I’ll show you 10 things that PHP 8 has so that you can code better than before. Let’s go.

“PHP…


Laravel + Rabbit MQ

Dealing with big website projects is cumbersome when we’re using monolith architecture. As a Laravel developer, it’s quite challenging, because basically, Laravel offers us a full-stack development where you can work with Front-end as well as Back-end in the same project, in other words, monolithic application. The question is, can we develop microservices using Laravel (or maybe Lumen) for a bigger project? Of course, we can.

Before we go on, what are the bad things about developing apps using monolithic architecture? Well, because all the functionalities are inside in one project, means that every time we make any changes (even…


Photo by Campaign Creators on Unsplash

Laravel testing is great! Most of the time, we do testing with PHPUnit, right? Writing Unit/Feature tests is a great way to ensure that our codes work as intended so that we can deploy them with confidence. Most of the time, we do tests from the developer’s perspective. And sometimes, we’re mocking the behavior of external resources (i.e. External APIs) so that our tests become independent of the external things. We don’t want our test to depend on external systems, which makes the tests becomes unclear.

The question that might appear is, can we do the test from the user’s…


Photo by Domenico Loia on Unsplash

Laravel is a great framework! We all know it. It offers a full stack development that enables us to build a frontend and backend website in one place. So we can deliver/build web projects in no time with quality and security inside. But that’s not it. There are so many things we can explore and leverage more power in Laravel. For example, I’ve written a lot of Vue JS component that we can embed it into our Laravel pages so that we can have a dynamic UI for our users. Interesting right? But the next thing we need to explore…


Photo by Chepe Nicoli on Unsplash

For web developers, it’s important for us to authenticates our users via API Request. In Laravel itself, besides its full-stack development, we have many options on how to authenticate the requests. For example, we have the Laravel Passport package to do the authentication and OAuth processes. But, if you don’t want to use the OAuth feature that Passport offers, then the Laravel Sanctum may be a choice for you.

What is Laravel Sanctum?

Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs (https://laravel.com/docs/8.x/sanctum)

Yes, in Sanctum, we have two options…


Photo by Giftpundits.com from Pexels

Are you a developer? If yes, I’m sure that you must always add some packages/libraries to your project. I’m a Laravel developer, maybe you too. And inside Laravel, we have so many useful packages that ready to use, make life easier for us. What do you need? Do you want an API Authentication? You have Laravel Passport/Sanctum. Need a monitoring queue job? You have Horizon. Or maybe other packages from other developers/companies like Spatie Laravel Permission for managing roles and permissions. And trust me, there are so many more packages that useful for our projects. Just a little tip from…

Cerwyn Cahyono

PHP/Backend Engineer at Undercurrent Capital Pte Ltd — Data Science Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store