Saturday, October 31, 2015

New features in PHP5+ | PHP7

New features in PHP5+ | PHP7

PHP 7 is scheduled  to be released on Nov 2015. So what are the new things that a PHP developer must learn to beat the heat of php. Starting from PHP 5.3 there are many new things that are added to PHP, some of them are  explored below.

1 PHP 5.3

  1. Closures - Closures and lambda functions can make programming much easier
  2. New INI files - Two new INI files which will replace the current INI's packaged with PHP. One focused on production deployments and the other focused on development deployments.
2 PHP 5.4
  1. Traits - Mechanism for code reuse in single inheritance languages such as PHP. It is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.
  2. Short array syntax - [ ] === array()
  3. Builtin server - php -S localhost:8000
3 PHP 5.5
  1. Generators -  Generators provide an easy, boilerplate-free way of implementing iterators.
  2. Finally keyword - try catch finally 
4 PHP 5.6
  1. Inbuilt debugger -  A PHP debugger
  2. Exponential operator - **
5 PHP 7.0
  1. Anonymous classes - Classes with no names
  2. Combined comparison(Spaceship) operator - <=>
  3. Return types - Adds return types to functions, methods and closures
  4. Null coalesce operator- ??
  5. Scalar type hint
Note: For more insight checkout below links:

Thursday, October 29, 2015

Installing Laravel 5.1 on Windows 8.1 | x64 | PhpStorm 9.0.2

Installing Laravel 5.1 on Windows 8.1 | x64 | phpStorm 9.0.2


  1. PHP 5.5.9 +
  2. OpenSSL PHP Extension
  3. PDO PHP Extension
  4. Mbstring PHP Extension
  5. Tokenizer PHP Extension
  6. Composer Link

Installing Laravel:

1.Type  php composer create-project laravel/laravel --prefer-dist in your command prompt,  you can use any directory.

2.Open the "config" folder in Laravel app  and open the "app.php" look at  'key' => env('APP_KEY', 'SomeRandomString'),
in "SomeRandomString" put any string of size 32. 

Running Laravel:

On your terminal under Laravel folder type php -S localhost:8000 -t 'public'
It will show you

PHP 5.6.3 Development Server started at Thu Oct 29 16:49:25 2015
Listening on http://localhost:8000
Document root is C:\xamppPhp56\htdocs\Laraval\blog\public
Press Ctrl-C to quit.

You can now open the http://localhost:8000


 ❤ U

Monday, December 15, 2014

Installing android SDK on Windows 8.1(X64).

In this very first post we will be installing Android sdk ,the installation is pretty simple just head over to the official site for Android sdk and download the bundle(Android Studio+Sdk) [828 Mb].The download would take time.

After downloading the bundle ,there are some steps that must be performed in order to run and work with the Studio[1].

a)Install JRE 8(Java Runtime Environment) and JDK 8(Java Development Kit).

b)Install the Bundle executable with admin rights(Right click &select install as admin).

c)After the installation is completed you will have the Android studio with sdk installed on your system.
d)Select the SDK Manager() from the Tools Menu.

e)Check the Android SDK Tools,Platform-tools,Build-tools (1st three) from the Tools.
   Check the SDK Platform, Intel X86 Atom_64 System Image from Android 5.0(API 21).
   Check the Intel X86 Emulator Accelerator(HAXM installer).

f)You can install other tools as well but these are the bare essential for starting with Android developing.

The installation would take time,if everything works fine you would have working developing environment for creating Android applications.