Below is the simple function to get class name without namesapce. public function getClassName() { $path = explode(‘\\’, __CLASS__); return array_pop($path); }
Leave a CommentAuthor: Praveen Anaparthi
11+ years of IT industry experience holding a wide range of skill sets and roles with significant work on PHP, Node.js, Python, Ruby, Docker, React.js, Microsoft Azure, Azure DevOps, Windows PowerShell, Shell script, Jenkins, MongoDB, SQL, MySQL, Apache, Nginx. etc. It is my passion to learn new things and implement them as a practice. Aside from work, I like gardening and spending time with pets.
In this post, I will show you how easy it is to set up maintenance mode in CodeIgniter using CI’s hooks. while updating your web…
1 CommentI recently had to connect to an MSSQL Server using PHP on an Ubuntu system using PHP. To connect to MSSQL using PHP 5.6 we’ll…
Leave a CommentIn this post, I would like to show how you can configure the Azure SQL firewall settings. By configuring the firewall settings, you can allow…
Leave a CommentYou can now specify keys in list(), or its new shorthand [] syntax. This enables destructuring of arrays with non-integer or non-sequential keys.
Leave a CommentIn this post, I will show you how you can use the new Symmetric array destructuring feature of PHP7.1 version. In the previous version of…
Leave a CommentIn this post, I would like to show you how to integrate Google reCAPTCHA. Google reCAPTCHA is more user-friendly and reliable which protects your websites…
2 CommentsIn this post, I will show you can access the Azure REST APIs. In order to access the Azure APIs, we need the following details-…
Leave a CommentIn this post, I am gonna show you how to write a simple shell script to delete files from a directory if the files are…
Leave a CommentIn this post, I will show you how we can configure NGINX to serve applications form the different directories. I have two node application both…
1 CommentIn this post, I will show how you can secure your Slim3 Framework-based applications using JSON Web Token (JWT). To know more about JWT and…
91 CommentsIn this post, you will learn about Cross-Origin Resource Sharing. Http requests are restricted by the same-origin policy, which means where scripts can be loaded…
2 CommentsSlim is a full-featured, open-source PHP micro framework that helps you quickly write simple yet powerful web applications and APIs. It comes with a sophisticated…
7 CommentsIn this post, you will learn about Cross-Origin Resource Sharing. HTTP requests are restricted by the same-origin policy, which means that scripts can be loaded…
1 CommentIn one of my recent projects, I am receiving Excel files from external APIs and I have to parse and validate data, and then I…
Leave a Comment