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...