environment-variable-best-way-save-configuration-variables-php-application

Environment variables: Best way to save configuration variables in a PHP application

Introduction

Almost all PHP application use configuration variables to store configurations; like database credentials, memcache details, 3rd part api details and many others.

According to The Twelve-factor App all these config should Never be committed to SCM and developers should keep it separate from codebase. Further they suggest that config should be stored in environment variables (env vars or env).

Read more…

display-user-devices-application-currently-logged-option-logout-laravel

Display user devices there application is currently logged in and option to logout in Laravel

Often users login into an application from multiple devices, but forget to logout. Or sometimes they want to logout from a particular devices because of any reason whatsoever or they want to check the devices their application is currently logged in.

You might have seen similar features in facebook, twitter and many other applications, which allows you to see all browsers and devices from which you are currently logged in with options to logout from that device.

In this post we will look into implementing this feature in our Laravel application using session.

Read more…

What’s new in the latest Woocommerce 2.6 “Zipping Zebra” ??

As we know with the growing demand for eCommerce in today’s world Woocommerce is the most popular free eCommerce solution which provides ready to go solutions for creating virtual shops beautifully and damn easily.Users having less coding knowledge can also develop beautiful web based shops in minutes.

Finally after development for 5 months and around 1700 commits from 25 authors Woocommerce has released its latest WooCommerce 2.6 “Zipping Zebra”. Sounds cool !! Don’t it..
Here I have listed some useful points you should know before upgrading to the latest version..
Read more…

php 7 features and benchmark

php-7 new features, improvements, and benchmark

PHP 7.0 released on December 2015, still there are changes/fixes in progress with current version being PHP 7.0.9 (change log)

No doubt PHP development is easy, with PHP 7 it has become more developer friendly, 2x faster performance and 50% better memory consumption than PHP 5.6. In turn it allows to server more concurrent request without adding extra hardware.

In the article I will highlight some of the useful feature in php 7.0 , improvement in PHP 7.0 and benchmark of php 7.0 with Magento, Drupal, Wordpress, Laravel, Zend Framework2 and sugarCRM.

Read more…

Adding extra conditions in default Laravel Authentication

Different ways to add extra conditions in Laravel 5.2 Authentication

Adding extra conditions in default Laravel Authentication

Laravel comes with a very simple yet powerful authentication system out-of-box. The Authentication system is HIGHLY flexible to meet all different types of requirement for authentication.

In this post we will see about adding extra conditions to default Laravel authentication i.e for example add a check for is_approved when a user login.
Read more…