PHP Laravel Framework Introduction and Installation

Source: Internet
Author: User
Tags php framework php web development composer install

Laravel is a simple, elegant PHP Web development Framework (PHP Web framework). It frees you from the messy code of noodles, and it helps you build a perfect web app, and every line of code can be concise and expressive. Official propaganda language:

The PHP FRAMEWORK for WEB artisans. A framework created for a web artist.

PHP that doesn ' T hurt. CODE HAPPY & ENJOY the FRESH AIR.

Official website: http://laravel.com/

English: http://www.golaravel.com/

http://laravel-cn.com/

Laravel Rating: http://www.nowamagic.net/librarys/topics/detail/289/

Baidu Encyclopedia: Http://baike.baidu.com/view/9522058.htm?fr=aladdin

Installation:

Installation via composer:

The Laravel framework utilizes Composer for installation and dependency management. If you haven ' t already, start by installing Composer.

Now your can install Laravel by issuing the following command from your terminal:

composer create-project laravel/laravel your-project-name --prefer-dist

This command would download and install a fresh copy of Laravel in a new your-project-name folder within your the current directory.

If you prefer, you can alternatively download a copy of the Laravel repository from Github manually. Next run the composer install command in the root of your manually created project directory. This command would download and install the framework ' s dependencies.

After installation access: http://localhost/laravel-projectname/public/index.php

The normal access will be OK.

Serving Laravel

Typically, you could use a Web server such as Apache or Nginx to serve your Laravel applications. If you're on PHP 5.4+ and would like to use PHP's built-in development server, you could use the serve Artisan com Mand:

php artisan serve

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.