Symfony框架

安装Symfony框架

composer create-project symfony/framework-standard-edition symfony

Creating a "symfony/framework-standard-edition" project at "./symfony"
Composer 2 repository support for https://mirrors.cloud.tencent.com/composer has been disabled due to what seems like a misconfiguration. If this is a packagist.org mirror we recommend removing it as Composer 2 handles network operations much faster and should work fine without.
Installing symfony/framework-standard-edition (v3.4.47)
  - Installing symfony/framework-standard-edition (v3.4.47): Extracting archive
Created project in D:\Centos\PHPstudyWWW\symfony
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 39 installs, 0 updates, 0 removals
    0 [>---------------------------]    0 [>---------------------------]
  - Installing doctrine/lexer (1.0.2): Extracting archive
  - Installing doctrine/annotations (v1.4.0): Extracting archive
  - Installing symfony/polyfill-ctype (v1.19.0): Extracting archive
  - Installing twig/twig (v1.42.5): Extracting archive
  - Installing paragonie/random_compat (v2.0.19): Extracting archive
  - Installing symfony/polyfill-php70 (v1.19.0): Extracting archive
  - Installing symfony/polyfill-util (v1.19.0): Extracting archive
  - Installing symfony/polyfill-php56 (v1.19.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.19.0): Extracting archive
  - Installing symfony/symfony (v3.4.47): Extracting archive
  - Installing symfony/polyfill-intl-icu (v1.19.0): Extracting archive
  - Installing symfony/polyfill-apcu (v1.19.0): Extracting archive
  - Installing psr/simple-cache (1.0.1): Extracting archive
  - Installing psr/log (1.1.3): Extracting archive
  - Installing psr/link (1.0.0): Extracting archive
  - Installing psr/container (1.0.0): Extracting archive
  - Installing psr/cache (1.0.1): Extracting archive
  - Installing fig/link-util (1.1.1): Extracting archive
  - Installing doctrine/inflector (v1.1.0): Extracting archive
  - Installing doctrine/collections (v1.4.0): Extracting archive
  - Installing doctrine/cache (v1.6.2): Extracting archive
  - Installing doctrine/common (v2.7.3): Extracting archive
  - Installing jdorn/sql-formatter (v1.2.17): Extracting archive
  - Installing doctrine/doctrine-cache-bundle (1.3.5): Extracting archive
  - Installing doctrine/dbal (v2.5.13): Extracting archive
  - Installing doctrine/doctrine-bundle (1.10.3): Extracting archive
  - Installing doctrine/instantiator (1.0.5): Extracting archive
  - Installing doctrine/orm (v2.5.14): Extracting archive
  - Installing incenteev/composer-parameter-handler (v2.1.4): Extracting archive
  - Installing composer/ca-bundle (1.2.8): Extracting archive
  - Installing sensiolabs/security-checker (v5.0.3): Extracting archive
  - Installing sensio/distribution-bundle (v5.0.25): Extracting archive
  - Installing sensio/framework-extra-bundle (v5.2.4): Extracting archive
  - Installing sensio/generator-bundle (v3.1.7): Extracting archive
  - Installing monolog/monolog (1.25.5): Extracting archive
  - Installing symfony/monolog-bundle (v3.6.0): Extracting archive
  - Installing symfony/phpunit-bridge (v3.4.46): Extracting archive
  - Installing swiftmailer/swiftmailer (v5.4.12): Extracting archive
  - Installing symfony/swiftmailer-bundle (v2.6.7): Extracting archive
  0/29 [>---------------------------]   0%
 10/29 [=========>------------------]  34%
 20/29 [===================>--------]  68%
 29/29 [============================] 100%
Package sensio/distribution-bundle is abandoned, you should avoid using it. No replacement was suggested.
Package sensio/generator-bundle is abandoned, you should avoid using it. Use symfony/maker-bundle instead.
Generating autoload files
12 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_host (127.0.0.1):
database_port (null):
database_name (symfony):
database_user (root):
database_password (null):
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
secret (ThisTokenIsNotSoSecretChangeIt):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache

 // Clearing the cache for the dev environment with debug true

 [OK] Cache for the "dev" environment (debug=true) was successfully cleared.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets

 Trying to install assets as relative symbolic links.

 [OK] No assets were provided by any bundle.

> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget
PS D:\Centos\PHPstudyWWW>

上面这些代码不用管,一路回车就好;

运行Symfony

symfony\bin> php .\console server:run

 [OK] Server listening on http://127.0.0.1:8000

 // Quit the server with CONTROL-C.

[Thu Sep 30 17:40:00 2021] 127.0.0.1:54437 [200]: /
[Thu Sep 30 17:40:01 2021] 127.0.0.1:62845 [200]: /_wdt/910535
[Thu Sep 30 17:40:01 2021] 127.0.0.1:58137 [200]: /favicon.ico

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

知其黑、受其白

喝个咖啡

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值