What is Laravel ?
What is Laravel ?
According to Wikipedia, Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. The source code of Laravel is hosted on GitHub and licensed under the terms of MIT License. Now we will explain more detail about that.
What Is Laravel ?
Laravel is web application framework with expressive, elegant syntax. Development must be an enjoyable, cretive experience to be truly fulfilling. Laravel aims make the development process a pleasing one for the developer without sacrificing application functionality.
Sometimes, web developer combine Laravel with other frameworks, including frameworks implemented in other languages such as Ruby on Rails, ASP.NET MVC and Sinatra. Laravel is accessible, yet powerful, providing powerful tools needed for large, robust application.
How to Start Use Laravel ?
1. Install and Configuration
There are several steps that must be done when installing Laravel
Laravel utilizies composer to manage its dependecies. Download a copy of the composer.phar. For the PHAR archive file, you can either keep it in your local project directory or move to usr/local/bin to use it globally on your system.
After download Laravel, you can run the installer using Composer.
composer global require "laravel/installer=~1.1"
Make sure to place the ~/.composer/vendor/bin directory in your PATH so the Laravel executable is found when you run the laravel command in your terminal.
Once installed, the simple “laravel new” command will create a fresh Laravel installation in the directory you specify. For instance, laravel new blog would create a directory named blog containing a fresh Laravel installation with all dependencies installed. This method of installation is much faster than installing via Composer.
For install Laravel you can install via download, first you can download the 4.2 version of the Laravel framework and extract its contents into directory on your server, next run your Laravel application with command “php composer.phar install” or “composer install” command to install all of the framework’s dependencies. This process requires Git to be installed on the server to successfully complete the installation. If you want to update the Laravel framework, you may issue the php composer.phar update command.
2. Server Requirements
Laravel framework has a few system requirments:
MCrypt PHP Extension
As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension. When using Ubuntu, this can be done via apt-get install php5-json.
The first thing you should after installing Laravel is set your application key to a random string. You can install via Composer by using the “php arisan key:generate” command. Typically, this string should be 32 characters long. The key can be set in the app.php configuration file.
If you wish to review the app/config/app.php file and its documentation. It contains several options such as timezone and locale that you may wish to change according to your application. You should also configure your local environment.
4. Pretty URL
Framework ships with a public/.htaccess file that is used to allow URLs without index.php. If you use Apache to serve your Laravel application, be sure to enable the mod_rewrite module.
That was a brief explanation of laravel and how to install it, to learn more you can read it on 41s.io/intro3357 and if you know information about Software Engineering, Problem Solving,Tutorial, you can visit at www.41studio.com/blog.