Image Upload in PHP: A Step-by-Step Guide

Handling image uploads is a common task in web development. This guide will walk you through setting up image uploads in pure PHP, utilizing Composer for dependency management and ensuring robust validation. Prerequisites Before we start, ensure you have PHP and Composer installed o...
Read more...
Basic PHP.jpeg

Getting Started with PHP: A Comprehensive Guide

IntroductionWelcome to the world of PHP! Whether you're completely new to programming or looking to expand your skills, PHP is a great language to learn. It's widely used for web development, powering everything from simple websites to complex web applications. In this guide, we'll wa...
Read more...
Custom PHP Function.jpg

A Custom PHP Function for Recursive Array Filtering

In PHP, working with multidimensional arrays often requires recursive functions to handle nested data structures. In this blog post, we'll explore an enhanced version of a recursive function designed to filter and trim data within a multidimensional array. I came up with this functi...
Read more...

Flexibility of Invokable PHP Classes

Introduction PHP, being a versatile and widely used programming language, offers various features to enhance code flexibility and organization. One such powerful feature is "Invokable PHP Classes" or "Callable Classes." These classes can be invoked as if they were functions, enabling...
Read more...

Unleashing the Power of Carbon in Laravel: A Comprehensive Guide

Introduction: In Laravel, working with dates and times is a common requirement for many applications. Fortunately, the Carbon library provides a powerful and intuitive API that simplifies date manipulation and offers a wide range of features. In this comprehensive guide, we will explo...
Read more...

Australia Post API — Location & Postcode Predictive Search

Last Updated: 22nd Sep, 2020 In this article, I'm writing about auto-suggesting postcode, the suburb of Australia with Australia Post API while filling up the address form. I was recently working with an Australian client, it was an e-commerce platform to sell their products online....
Read more...

PSR-2 Coding Standard – Automatically Format in Sublime Text

It is always really nice when a code editor allows fixing your code to PSR2 coding standard by just hitting a single command. At my work, we heavily use Laravel framework, which follows the PSR-2 coding standard. So, every day we create new packages, add new classes we firs...
Read more...
IP to Location with PHP

A Simple IP to Geo Location solution for PHP

The freegeoip.net service is discontinued, so please refer to the new package to get the same service sudiptpa/ipstack I've abandoned the legacy package sudiptpa/geoip as the service provider discontinued on July 1st, 2018. I was working on my own use case to find out...
Read more...
guid.jpg

Create unique GUID with PHP

In this blog post, I am going to write about my little PHP package for creating globally unique identifiers (GUID). Begin with installation via Composer: composer require sudiptpa/guid I was inspired mainly to create this package while I was searching for GUID information in the ph...
Read more...