Zip and Unzip Files in PHP

Compressing files when transferring them over the internet has a lot of advantages like it saves time and data transfer. With zip and unzip we can reduce file size and save lots of time while transferring. PHP comes with a lot of extensions that deal specifically with file compression and extraction. While working in PHP,

Learn More

Download and Upload Files Through FTP in PHP

Downloading or Uploading files to the server via FTP is an essential task for every web developer should know. There are many FTP clients available for handling files on the FTP server. You can also connect FTP server using a PHP script and handle file operations. PHP provides various functions to handle FTP server operations

Learn More

Encode Decode JSON In PHP

JSON stands for JavaScript Object Notation. JSON is an open standard data format used to transfer data quickly and easily. In PHP, there is an in-built function to handle JSON operations like encode and decode. Objects or arrays can easily be parsed into JSON using those functions. Then we can transfer JSON sting over HTTP/HTTPS

Learn More

How to Handle CSV Files in PHP?

Character Separated Values(CSV) or Comma Separated Values is a file type containing plain text content with a comma or a character as separators. PHP provides built-in functionality to read CSV files. Here, we will learn to use CSV data in our application using multiple methods. The first method will read data from a file while

Learn More

Check Laravel Version in CLI and File

Laravel is a popular framework built with PHP. While working on an existing project or implementing new packages we need to check particular package is compatible with the Laravel framework’s version or not. We have to decide based on the Laravel version. In this tutorial, we will teach you how to check the Laravel framework’s

Learn More

Add or Minus Years from Carbon Date in Laravel

The best part of Laravel is it has a variety of open-source plugins available. One of them is Carbon. Carbon is a date-time package for Laravel or any other PHP-based framework. In this blog, we will see some practical examples to add or remove years from carbon date objects. Carbon provides a function for adding

Learn More

Laravel File Download and Upload

Nowadays, File upload and download functionality is almost mandatory. Laravel provides simple and easy ways to upload and download files. You can store these files in a public folder or local storage. In this blog, we will see some practical examples to upload and download files in Laravel. Here, we have used Test Controller and

Learn More