如何解释通过Composer安装CakePHP时的建议?

时间:2018-06-07 07:38:05

标签: cakephp composer-php

当我尝试使用命令行安装时:

composer self-update && composer create-project --prefer-dist cakephp/app my_app_name

我一直收到这条消息,我没有用,现在哪一个是必需的,哪一个不是,我每次都要手动下载吗?

cakephp/app suggests installing markstory/asset_compress (An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.)
cakephp/app suggests installing dereuromark/cakephp-ide-helper (After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility.)
cakephp/app suggests installing phpunit/phpunit (Allows automated tests to be run without system-wide install.)
cakephp/cakephp suggests installing lib-ICU (The intl PHP library, to use Text::transliterate() or Text::slug())
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/lock ()
symfony/console suggests installing psr/log-implementation (For using the console logger)
m1/env suggests installing m1/vars (For loading of configs)
asm89/twig-cache-extension suggests installing psr/cache-implementation (To make use of PSR-6 cache implementation via PsrCacheAdapter.)
aptoma/twig-markdown suggests installing michelf/php-markdown (Original Markdown engine with MarkdownExtra.)
aptoma/twig-markdown suggests installing knplabs/github-api (Needed for using GitHub's Markdown engine provided through their API.)
ajgl/breakpoint-twig-extension suggests installing ext-xdebug (The Xdebug extension is required for the breakpoint to work)
ajgl/breakpoint-twig-extension suggests installing symfony/framework-bundle (The framework bundle to integrate the extension into Symfony)
ajgl/breakpoint-twig-extension suggests installing symfony/twig-bundle (The twig bundle to integrate the extension into Symfony)
psy/psysh suggests installing ext-pcntl (Enabling the PCNTL extension makes PsySH a lot happier :))
psy/psysh suggests installing ext-posix (If you have PCNTL, you'll want the POSIX extension as well.)
psy/psysh suggests installing ext-pdo-sqlite (The doc command requires SQLite to work.)
psy/psysh suggests installing hoa/console (A pure PHP readline implementation. You'll want this if your PHP install doesn't already support readline or libedit.)

1 个答案:

答案 0 :(得分:1)

这些只是可以扩展已安装软件包功能的建议,但没有它们,一切都应该正常工作。例如,v2 <- lubridate::year(df$dt) + (strptime(df$dt, format = "%Y-%m-%d")$yday + 1)/365 i1 <- df$comment == "BC" v2[i1] <- -1* v2[i1] diff(v2) #[1] 124.75 将建议一些允许登录到不同后端的插件。但是monolog/monolog可以在没有它们的情况下工作 - 例如,您可能无法记录到Sentry,但monolog/monolog仍然可以在没有此功能的情况下使用。

通常你可以忽略这些建议。但是您可以花几分钟时间来检查这些建议的软件包实际上在做什么 - 您可以了解可以使您的应用程序更好,更易于维护的新技术和解决方案。

如果您对这些建议不感兴趣,可以使用monolog切换以避免在--no-suggest / install / update上显示这些建议:

require