PHP Errors Handling

PHP Errors Handling

PHP5 introduced exceptions, a completely different way to handle errors. Simply, exceptions like sensors detect any error occur within your code and output a bunch of data to handle these errors. Let’s see how these exceptions work.

continue reading »

How To Test PHP Classes and Objects

How To Test PHP Classes and Objects

PHP provides a set of functions to test classes and objects. These functions allow you to know more information about classes and objects that you are using at runtime. All these functions provided by PHP reflection API but their simplicity make them the first choice.

continue reading »

How To Install Dependencies With PHP Composer

Install Dependencies With PHP Composer

Composer is a dependency management tool for PHP developers. It allows you to define all libraries that your application depends on and automatically download these libraries with a simple command. Composer solve many problems, you know if your application depends on many libraries and these libraries depend on other libraries like frameworks ,It will be cumbersome to make all these libraries up to date.

continue reading »

Laravel Requests and Inputs Part1

laravel requests and inputs

Laravel has awesome methods to retrieve, change, create and store request data. It allows you to handle both $_GET and $_POST data and store in session or cookies. Let’s look at some methods of accessing request data.

continue reading »

Laravel Migrations Part2

laravel migrations

In Laravel Migrations Part1 ,I discussed how to create ,run and update your migrations. It seems you need more and fortunately laravel still have many features to enhance your application migrations. Let’s explore some of them.

continue reading »