composer 安装 laravel 和 lumen

laravel 6.0

  • PHP >= 7.2.0
  • BCMath PHP 拓展
  • Ctype PHP 拓展
  • JSON PHP 拓展
  • Mbstring PHP 拓展
  • OpenSSL PHP 拓展
  • PDO PHP 拓展
  • Tokenizer PHP 拓展
  • XML PHP 拓展

创建新项目,blog是项目名(文件夹名)

// 使用 laravel/install
composer global require laravel/installer
laravel new blog // 创建特定版本 laravel 时,使用 composer composer create-project --prefer-dist laravel/laravel blog "6.0.*" composer create-project --prefer-dist laravel/laravel:^9 blog

lumen

// 使用 laravel/lumen-installer
composer global require "laravel/lumen-installer"
lumen new blog
// 创建特定版本 laravel 时,使用 composer
composer create-project --prefer-dist laravel/lumen blog

laravel-oci

composer require yajra/laravel-oci8:"5.5.*"

hprose

composer require hprose/hprose:">=2.0.0"

phpexcel

composer require phpoffice/phpexcel