Showing posts with label php-framework. Show all posts
Showing posts with label php-framework. Show all posts

Tuesday, 24 March 2015

How to install laravel framework

This post is about installing Laravel framework on your computer provided that you have local server up and running.If you don't know how to install a local server on to your computer you can read my previous post on How to install a local server on computer.
So lets get started.
Open your favorite browser an search for Composer.

But before we download composer we need to allow open SSL.To do this go to your

wamp-folder/bin/php/php5.5.12(number depends on your version)/php.ini 

Open the php.ini file with notepad and search for openssl and make sure that the line

extension=php_openssl.dll

is uncommented

Go back to composer page in browser and hit the download buton


Copy the second link from the download page


Open Command prompt and browse to your Wamp folder and paste the link copied in the previous step

Now type

php composer.phar create-project laravel/laravel www --prefer-dist 

into the CMD and hit enter this will install laravel framework into www folder.

Now we are done with the installation but before we start using the framework we need to set certain permissions to the framework.Go to 

Wamp-folder/www/

Right click on app folder and open properties
Click on the security Tab
Select system and make sure that it has write permission

Now go to 
Wamp-folder/bin/apache/apache2.4.9/conf/

Open the httpd.conf file with notepad and serach for mod_rewrite and remove the # which is in front of the line



Finally we come to the end of this long process.The only thing left now is to check if all the installation was successful
Open up the browser type in localhost you should get a list of folder.
Click on public folder you should get a page like this


Thats all you have successfully installed Laravel framework on your local server 








Monday, 23 March 2015

Introduction to Laravel

What is Laravel and why should I learn Laravel?
Laravel is a framework for PHP programming language.
Think of a framework as a ordered structure within a programming language giving you the standard solutions to a typical problems.Using a framework reduces the burden of doing same thing again and again and stops you from re-inventing the wheel again and again.
Laravel framework makes easy handling of frequently used processes such as:-
  • User Registration
  • Authentication
  • Session Handling
  • Database Migration
  • Form Validation etc
Coming back to framework there are a lot of PHP framework that already exists and neither a single of them is bad,but it depends on your utility.Few frameworks are
  • CakePHP
  • CodeIgnitor
  • ZendFramework etc
The best way to know which one is better for a particular type of application is by learning all of them.So that strength and weakness of each framework is discovered.

Why Laravel?
  • Easy to learn
  • Excellent Documentation
  • Active community and forum support
But I will definitely suggest you to learn all the framework and work like a PRO :) 

What do you need to start learning Laravel?
Basic understanding of PHP language.