美文网首页
ubuntu16.04使用Composer创建Lavarel项目

ubuntu16.04使用Composer创建Lavarel项目

作者: 米旦 | 来源:发表于2018-06-29 17:31 被阅读0次

    安装composer的中文教程链接

    安装composer的英文教程链接

    创建Laravel项目  

    composer create-project laravel/laravel firstLaravel

    启动项目

    方法1

    php -S localhost:8888 -t public

    方法2

    php artisan serve

    在创建项目时遇到problem:

    Your requirements could not be resolved to an installable set of packages.

    Problem 1 - laravel/framework v5.6.9 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

    Problem 1 - phpunit/phpunit 4.8.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.

    ……

    解决办法:

    安装mbstring和dom扩展包即可:

    sudo apt-get install php-mbstring

    sudo apt-get install php-xml

    相关文章

      网友评论

          本文标题:ubuntu16.04使用Composer创建Lavarel项目

          本文链接:https://www.haomeiwen.com/subject/fmgayftx.html