首页 > 代码库 > laravel5.3初体验

laravel5.3初体验

composer中已经推出了laravel5.3版本的安装依赖。

看到很多诱人的更新,今天决定尝试一下。

背景

操作系统:windows7

php:5.5.37

composer:1.1.3

1、首先根据laravel5.3的版本需求需要对php版本进行更新。

However, if you are not using Homestead, you will need to make sure your server meets the following requirements:PHP >= 5.6.4OpenSSL PHP ExtensionPDO PHP ExtensionMbstring PHP Extension
// Built-in support for tokenizer is available as of PHP 4.3.0Tokenizer PHP Extension

更新php版本,其中配置已经在之前的一篇文章叙述过,这里不再重复。

php:5.5.37==》7.0.10

看到composer版本也已经落后几个版本了,索性一起升级到最新版本。

cd到\ComposerSetup\bin\目录下执行

php composer.phar self-update

composer:1.1.3==》1.2.0

2、使用create-project命令创建项目

create-project命令说明:

composer create-project laravel/laravel project_name 5.3.0

这里使用了版本号参数5.3.0。

To create a new project using Composer you can use the "create-project" command. Pass it a package name, and the directory to create the project in.

You can also provide a version as third argument, otherwise the latest version is used.

If the directory does not currently exist, it will be created during installation.

这是摘抄的官方文档。然后你就拥有了php7、laravel5.3的项目。

 

laravel5.3初体验