What support/library is there in CakePHP for sending emails and how to use it?
In CakePHP3, there are Transport and Email classes available under Cake/Network/Email namespace that are used for sending emails. After an update in the version 3.1 email functionality has Read more…
Understanding PHP data sanitization with an example
Introduction to SequenceMatcher in Python and Calling Python Script in PHP
SequenceMatcher is a class in Python which compares pairs of sequences of any type.SequenceMatcher is a class which comes under the difflib module. It provides classes and functions for comparing sequences. It can be Read more…
Laravel Configuration and Environment Variables
Each laravel application has one “Config” directory which includes all the basic configuration files. You can configure your application by adding custom or built-in configuration variables.
Based on the environment where the application Read more…
Handling zip file download completion and cancellation event (PHP)
Problem: I am working on a project in which user needs to download a zip file from the website. I am creating zip file on the server temporarily which should be Read more…
Purpose and Usage of spl_autoload_register with example
__autoload is an older method. This method was first introduced in PHP 5 as a magic function but now this method is deprecated as of PHP version 7.2.0. If we want our code to be compatible with Read more…
Here we will go through different Magic Methods in PHP
The PHP functions which starts with the double underscore “__” are called magic methods. These are the methods which are always defined in classes, and can not be used alone i.e. Read more…
PHP script scheduling without cron job
Sometimes a website built in php needs to schedule a script on daily or hourly basis – for example, Reminder Emails, Newsletter emails or Database backups to be taken automatically. Normally, these types of backend tasks can be handled with the Read more…
Built in Web Server in PHP and How to Use it
What is Built in Web Server?
Built-in web server is used for development and testing the PHP application without using LAMP, just launch the built-in server from the Read more…
Understanding the purpose and usage of Inflector in Cakephp
The Inflector class in cakephp is used to modify single/multi word strings into different formats using its build-in methods. We don’t need to use core php methods such as str_replace if you want to Read more…
Steps for integrating Laravel web service with custom alexa skill:
Step 1: Your web service should be on secure HTTP connection and should have SSL/TLS. Alexa strictly enforces for this to protect the confidentiality and integrity of your data.
Step 2: Open your amazon developer Read more…
Some important features in Laravel Framework
1. Artisan: Artisan is a command-line interface tool which is provided by laravel. By using this tool, users can create database structure. It is also used for creating the MVC files right away which means Read more…
What Is PHP_CodeSniffer?
PHP_CodeSniffer is an essential development tool that helps developers to work in a standardise format so as to make code clean and consistent. It ensures that same coding style is being followed. It allows a set of rules or a standard to be Read more…