The CakePHP team is thrilled to announce the immediate availability of 4.0.0.CakePHP 4 is coming with breaking changes. This new release is targeting the newest versions of PHP especially 7.2. CakePHP 4 supports FormHelper now generates HTML5 validation messages and DateTime inputs, Middleware for CSP headers, Form tampering prevention, and HTTPS enforcement.

CakePHP has a few system requirements:

HTTP Server. For example Apache. Having mod_rewrite is preferred, but by no means required. You can also use nginx, or Microsoft IIS if you prefer.
Minimum PHP 7.2
mbstring PHP extension
intl PHP extension
simplexml PHP extension
PDO PHP extension

Installing CakePHP 4

Before starting…

In this article, you’ll learn how to use the Node.js crypto module to perform cryptographic operations on data. I'll show you how to encrypt data with a secret key and then decrypt it using the same secret key when required.

Create a new project

Create a new directory in your local file system and switch to it by typing the following

mkdir encr_decr && cd encr_decr
npm init -y

Now install the crypto module

npm install crypto --save

Now make app.js.

Add following code to app.js

var Crypto = require('crypto');
var secret_key = 'fd85b494-aaaa';
var secret_iv = 'smslt';
var encryptionMethod = 'AES-256-CBC';
var key…

Let’s suppose we have 2 collections of users and posts. If we want to delete all related posts of the user when we delete the user. We can manage this thing by following steps.
First, we delete users and after that, we delete all posts related to that user from posts collection. But somehow we get errors during deleting posts from the collection. In such cases, the user is removed but posts remain in the collection. To handle such a scenario Transaction comes into place.

Let’s take an example. Insert data to users and posts collection.


Copy inserted Id…

Node.js can be used in database applications. One of the most popular NoSQL databases is MongoDB.


To be able to experiment with the code examples, you will need access to a MongoDB database.

You can download a free MongoDB database at

Or get started right away with a MongoDB cloud service at

Let us try to access a MongoDB database with Node.js.

To download and install the official MongoDB driver, open the Command Terminal and execute the following:

npm install mongodb

Node.js can use this module to manipulate MongoDB databases: To create a database in MongoDB, start…

What Is AWS Secrets Manager?

In the past, when you created a custom application to retrieve information from a database, you typically embedded the credentials, the secret, for accessing the database directly in the application. When the time came to rotate the credentials, you had to do more than just create new credentials. You had to invest time to update the application to use the new credentials. Then you distributed the updated application. If you had multiple applications with shared credentials and you missed updating one of them, the application failed. …

In the simplest terms, Cloud computing is when you use a computer/server which is provided by someone else.
This server has to be accessed over the internet by using a web-based tool for personal and business use.

Before move further we need to understand Virtualization.
Virtualization is the creation of a virtual version of something, such as an operating system, server, storage device, or network resources.

So, Cloud Computing = Virtualization + Internet / Intranet (a local or restricted communications network, especially a private network created using World Wide Web software.)


No capital expenditure Everything is changed on per second/minutes/hour…

In this tutorial, we’ll show you how to use Routemobile’s Programmable SMS to send SMS from your Node.js application.


Before you begin, make sure you have:
- Node.js installed on your machine

Sign up for (or log in to) your Routemobile’s account. (

After that make one file sms.js. Put the following code to it.

var http = require('http');
let test_message = "My test sms.";
let username = "xxxxxxxxxx";
let password = "xxxxxxxxxx";
let phone_number = "900xxxxxxx";
let sender_id = "xxxxxxxx";
let url = ''+username+'&password='+password+'&type=0&dlr=1&destination='+phone_number+'&source='+sender_id+'&message='+test_message;

http.get(url, function (result) {
console.log('send sms Success, with: ' + result.statusCode);
}).on('error', function (err) {
console.log('send sms Error, with: ' + err.message);

Go to terminal and run

node sms

To achieve this, create a custom module loremipsum it requires 3 files which are, loremipsum.routing.yml, src\Form\LoremipsumDataForm.php. The steps were listed below, how to validate the email field using AJAX.

Step 1: Create

name: 'Lorem Ajax Demo'
type: module
description: 'Lorem Ajax Demo Example plugin'
core: 8.x
package: 'Custom'

Now make loremipsum.install file and add the following code. This will make a custom table.

<?phpfunction loremipsum_schema() { $schema['loremipsum'] = array( 'fields' => array( 'id'=>array( 'type'=>'serial', 'not null' => TRUE, ), 'name'=>array( 'type' => 'varchar', 'length' => 40, 'not null' => TRUE, ), 'mobilenumber'=>array( 'type' => 'varchar', 'length' =>…

Ajax is a script on the client side communicating asynchronously with the server without a complete page refresh. In order to build a simple form using AJAX in Drupal 8, we created a form with the User email field. Using ajax we are going to validate that field. To achieve this, create a custom module loremipsum it requires 3 files which are

  2. loremipsum.routing.yml
  3. src\Form\AjaxExampleForm.php.

The steps were listed below, how to validate the email field using AJAX.

Step 1: Create

name: loremipsum Module description: An experimental module to build our first Drupal 8 module package: Custom type: module…

Step 1:

Download the Webform module.

Enable Webform Module.

Step 2:

Go to structure/webform and add a webform

Step 3:

Add 2 wizard page named contact details and personal Info. After that added element as per the below image.

Kshitij Soni

Developer by profession . Youtube channel :

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store