Free tool to write API documentation – PHP, MySQL

I was looking for a tool that allows me to write API documentation so I can provide it to the frontend developers and also for myself. I checked many but didn’t find any that fits to all of my requirements. So I decided to create one of my own. Creating my own tool gives me …

Include React JS component dynamically

In order to include a React JS component dynamically, we need to use the Javascript’s built-in fetch API. Let’s say you have a simple component that renders an <h1> tag: And in your index.html, you have your main React JS app. Now you want to render your React JS component “MyComponent” dynamically in div having …

Multi-purpose platform in Node.js and MongoDB

A multi-purpose platform is created in Node.js and MongoDB. Developing an API in Node.js and MongoDB allows you to create real-time, high performance and scalable applications. When you are building a website or a mobile app, you might have a different design than what is already built. But your backend will be almost similar to …

Show or hide input field password – HTML and Javascript

Show hide password - HTML and Javascript

In this blog post, we will discuss, how you can show or hide an input field for password using plain HTML and Javascript. This is useful because sometimes users wants to see what password they are setting. This feature is very helpful in: No library has been used in this tutorial. First, we will create …

Assign shirt number to new cricketer – PHP PDO MySQL

Suppose you have a database where data of all players of any sports team is stored. Every player has a name and a shirt number. We will create a program that will generate a new number for new player. We will make sure the new number is not already assigned to any player. We will …

Sort custom post type by ID ascending – WordPress

Suppose you have custom post type in WordPress that you want to sort such that it displays the first created post on top. By default, WordPress sort the posts by ID in descending. That means that the latest uploaded post will be displayed on top, which is good in many cases. But there might be …

How to send money from remitly.com to NayaPay (Pakistan)

In order to send money from remitly.com to NayaPay (Pakistan), you need to follow the following steps. Step 1: Create an account First, you need to create an account on remitly.com. Step 2: Select country After registration is done, you need to select country as “Pakistan” and click on “Send Money” button. You will also …