当我尝试使用命令行安装时:
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.)
这些只是可以扩展已安装软件包功能的建议,但是没有它们,一切都应该可以正常工作。例如,monolog/monolog
会建议几个插件,这些插件将允许登录到不同的后端。但是monolog/monolog
没有它们就可以工作 - 例如,您可能无法登录到 Sentry,但如果没有此功能monolog
仍然可以使用。
所以通常你可以忽略这些建议。但是你可以花几分钟时间检查这些建议的包的实际作用 - 你可以了解新技术和解决方案,这些技术和解决方案可以使你的应用更好、更易于维护。
如果你真的对这些建议不感兴趣,你可以使用--no-suggest
开关来避免在install
/update
/require
上显示它们:
composer install --no-suggest