php Laravel 架構 介紹及安裝

來源:互聯網
上載者:User

標籤:style   http   color   os   art   for   

Laravel是一套簡潔、優雅的PHP Web開發架構(PHP Web Framework)。它可以讓你從麵條一樣雜亂的代碼中解脫出來;它可以幫你構建一個完美的網路APP,而且每行代碼都可以簡潔、富於表達力。官方宣傳語:

THE PHP FRAMEWORK FOR WEB ARTISANS. 為web藝術家建立的架構。

PHP THAT DOESN‘T HURT. CODE HAPPY & ENJOY THE FRESH AIR.

官網:http://laravel.com/

中文 :http://www.golaravel.com/

http://laravel-cn.com/

laravel評價:http://www.nowamagic.net/librarys/topics/detail/289/

百度百科:http://baike.baidu.com/view/9522058.htm?fr=aladdin

安裝:

通過composer安裝:

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

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

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

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

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

安裝完後訪問:http://localhost/laravel-projectname/public/index.php

能正常訪問就ok了。

Serving Laravel

Typically, you may use a web server such as Apache or Nginx to serve your Laravel applications. If you are on PHP 5.4+ and would like to use PHP‘s built-in development server, you may use the serve Artisan command:

php artisan serve

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.