PHP Frameworks Archives

Fetch Mails from Gmail in Core PHP

Author - Webner
|
0 Comments
|

Fetch Mails in Core PHP

Create an Core php app on console (https://console.developers.google.com).
Download Google Client library from the following link (https://github.com/googleapis/google-api-php-client)
Download the file of credentials(client_id,client_secret) and put it in the project directory.
Create Read more…

What is DevOps?

Author - Webner
|
0 Comments
|

What is DevOps?

DevOps is a set of practices that combines software development and other IT operations. It shortens the systems development life cycle and aims to provide continuous delivery with high-quality software.

Who is DevOps Engineer?

They are either developers who get curious about Read more…

Integrate Razorpay in CakePHP 3

Author - Webner
|
0 Comments
|

Step 1: Create RazorPay Account

First of all you need a test account for integration. Click the below link https://dashboard.razorpay.com/#/access/signup and set up a test account there:

Step 2: Get your API Keys:

After successful login, you will see your dashboard Read more…

TypeError: ‘<' not supported between instances of 'int' and 'str' in Python

Author - Webner
|
0 Comments
|

Description

Sometimes there may be a need to access or simply print a python dictionary in a particular order of its keys i.e. ascending or descending as it was in my case. Although it seems that it is not a big issue and that is true in Read more…

Hiding the editor field using Devextreme

Author - Webner
|
0 Comments
|

How to hide specific editor field in popup editing mode using Devextreme

Editing is one of the most important features of Devextreme Datagrid. Every developer needs Editor feature for editing the record. Many types of editing modes are provided by the Devextreme Datagrid like ‘cell’, ‘row’, ‘form’, and Read more…

EML to MSG Using IndependentSoft C#

Author - Webner
|
0 Comments
|

Convert .eml to .msg files using IndependentSoft C#

EML file extension is created by Microsoft Corporations for Email files. It is also known as RFC 822. In these files, email messages are stored in plain text formats. Microsoft’s Outlook Express uses this file extension to save Mail Read more…

How to get the “To” email address from eml files?

Author - Webner
|
0 Comments
|

What is an EML File ?

EML is an email message file extension (means an email is stored in a file with an extension .eml). This file is in the standard MIME RFC 822 format by Microsoft Outlook Express and other email programs. EML files can contain plain ASCII Read more…

Firebase Cloud Messaging With Laravel 6

Author - Webner
|
1 Comment
|

Introduction to Firebase Cloud

Earlier known as Google Cloud Messaging and now called Firebase Cloud Messaging (FCM) is a messaging solution for cross-platform provided by Google itself. This service lets you reliably deliver messages or notifications at no cost. One can use FCM for sending push notification Read more…

How to validate records before inserting in CakePHP 2.X

Author - Webner
|
0 Comments
|

Problem:

Sometimes we only need to validate records before inserting operations in CakePHP. In the case of bulk insertion and CSV records validation, it’s very difficult to validate individual fields of bulk records.

Solution:

array (‘validate’ => ‘only’) parameter will do exactly that for us.

Read more…

Laravel 5.4 Logs And Errors

Author - Webner
|
0 Comments
|

Introduction

Logfiles:

Logs are files that keep a registry or records of events, processes, messages that occur in the operating system or any software that runs.

Laravel provides the robust logging services that allow the user to log messages to file.
Laravel uses the Monolog library Read more…

Firebase Integration With Laravel 6.x (Ubuntu 18.04)

Author - Webner
|
0 Comments
|

Below are the steps to integrate Firebase with Laravel 6.x

Step 1

To integrate Firebase with Laravel we first need a Laravel project. Create a new Laravel project using the given composer command.

composer create-project –prefer-dist laravel/laravel firebase

Step 2

Read more…

Regular expressions in PHP

Author - Webner
|
0 Comments
|

Regular expressions

Regular expressions use arithmetic operators like +,^,- and create complex expressions that can help to validate IP address, email address, telephone no, etc. They save our coding time.
Some of built-in PHP regular expressions are:

Preg_replace- perform pattern match on a string and returns true if Read more…

Convert PDF To Image In PHP

Author - Webner
|
0 Comments
|

How to convert PDF to image file using PHP?

Before installing PDF to Images package, firstly you need to install two PHP extensions
Imagick and Ghostscript.

Step 1: Install Imagick

sudo apt-get install php-imagick

Step 2: Restart Apache

In the second step Read more…

Introduction to MVC

Author - Webner
|
0 Comments
|

What is MVC?

The MVC is a very frequent web development architectural framework or application designing model which contains three main components the Model, the View and the Controller each of them performs different functions assigned to them.

It helps us to avoid complexity by dividing the application Read more…

Compress Videos using FFmpeg Laravel & shell_exec method

Author - Webner
|
0 Comments
|

Introduction

First of all, install FFmpeg in your composer. Perform the steps below to install it on Ubuntu:

composer require pbmedia/laravel-FFmpeg

Start by updating the packages list:

$ sudo apt update
– Next, install FFmpeg by typing the following command:

$ sudo apt install FFmpeg

– To check FFmpeg is Read more…

Reformat associative array in CakePHP 2.*

Author - Webner
|
0 Comments
|

How to use CakePHP 2.* Hash::combine method to reformat associative and find results array?

Sometimes we do a lot in the code to reformat find query results, to remove the table name (for example, User, Article, etc) from the array and sometimes use one of the column Read more…

Creating A New Laravel App With Initial Setup

Author - Harshit Gulati
|
0 Comments
|

How to create a new laravel app with initial setup and get everything up and running?

To create your first Laravel app, you will require some prerequisites and here is what you will need to have installed:

Composer

WebServer; I am using Apache ( For Windows and macOS, I Read more…

Laravel Events Introduction With Example

Author - Pawan Gulati
|
0 Comments
|

Laravel Events

Events are one of the many powerful features of the Laravel. The event basically means the thing that happens or takes place, especially the one that is important. So, in Laravel’s case, events are triggered when some condition is met like most websites have authentication Read more…

Validation vs. Application Rules In CakePHP

Author - Pawandeep Kaur
|
0 Comments
|

CakePHP uses a two-layered approach to validation:

1. Validation
It determines basic validity. It ensures that the data types, size, and format of data are correct. When we call newEntity() or patchEntity() methods, validations are triggered. For example, checking if an email address Read more…

Methods of Debugging – PHP

Author - Umang Pasricha
|
1 Comment
|

Methods of Debugging by dumping information

These methods are used for debugging in PHP. We can see the variable values in human-readable form on the console and can find errors in case there are issues due to variables incorrect values. print_r() and var_dump() are used Read more…

1 2 3 4 5 6 ... 14 Next page ›