首页 > Web开发 > 详细

php Laravel 框架 介绍及安装

时间:2014-07-16 20:31:25      阅读:336      评论:0      收藏:0      [点我收藏+]

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

 

php Laravel 框架 介绍及安装,布布扣,bubuko.com

php Laravel 框架 介绍及安装

原文:http://www.cnblogs.com/youxin/p/3836643.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!