首页 文章

通过Composer安装Laravel时获取建议

提问于
浏览
5

从昨天起我正在创建一个laravel项目

composer create-project laravel / laravel project_name

我收到这些建议信息 . 这是正常的还是我搞砸了什么 .

我在PHP 7.0.1中安装了Xampp . 将wamp中的PHP选项从7.0.1切换到5.x.x(只有一个选项,不记得确切的选项)从那时起,无论是创建新项目还是通过comopser require命令添加包,我都会收到这些消息 . 我在Wamp中将PHP版本切换回7.0.1 . 卸载了wamp,但仍然有消息 . Unsitalled xamp,重新安装它但仍然收到这些消息 .

symfony / var-dumper建议安装ext-intl(在时区转储中显示区域名称)symfony / var-dumper建议安装ext-symfony_debug()symfony / routing建议安装doctrine / annotations(用于使用注释加载器)symfony /路由建议安装symfony / config(对于使用一体化路由器或任何加载器)symfony / routing建议安装symfony / dependency-injection(用于从服务加载路由)symfony / routing建议安装symfony / expression-language(For使用表达式匹配)

和这样的长名单

1 回答

  • 9

    这个是正常的 . 有些软件包可以提供建议,但Laravel应用程序不需要它们 . 这些包在某些情况下可能很有用,但确保不需要运行或创建Laravel应用程序,因此您可以安全地忽略这些消息 .

    我刚刚验证了安装5.5版本的框架,我得到以下建议列表:

    symfony/var-dumper suggests installing ext-intl (To show region name in time zone dump)
    symfony/var-dumper suggests installing ext-symfony_debug ()
    symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
    symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
    symfony/routing suggests installing symfony/dependency-injection (For loading routes from a service)
    symfony/routing suggests installing symfony/expression-language (For using expression matching)
    symfony/routing suggests installing symfony/yaml (For using the YAML loader)
    paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)
    symfony/event-dispatcher suggests installing symfony/dependency-injection ()
    symfony/http-kernel suggests installing symfony/browser-kit ()
    symfony/http-kernel suggests installing symfony/config ()
    symfony/http-kernel suggests installing symfony/dependency-injection ()
    symfony/console suggests installing symfony/lock ()
    egulias/email-validator suggests installing ext-intl (PHP Internationalization Libraries are required to use the SpoofChecking validation)
    ramsey/uuid suggests installing ircmaxell/random-lib (Provides RandomLib for use with the RandomLibAdapter)
    ramsey/uuid suggests installing ext-libsodium (Provides the PECL libsodium extension for use with the SodiumRandomGenerator)
    ramsey/uuid suggests installing ext-uuid (Provides the PECL UUID extension for use with the PeclUuidTimeGenerator and PeclUuidRandomGenerator)
    ramsey/uuid suggests installing moontoast/math (Provides support for converting UUID to 128-bit integer (in string form).)
    ramsey/uuid suggests installing ramsey/uuid-doctrine (Allows the use of Ramsey\Uuid\Uuid as Doctrine field type.)
    ramsey/uuid suggests installing ramsey/uuid-console (A console application for generating UUIDs with ramsey/uuid)
    symfony/translation suggests installing symfony/config ()
    symfony/translation suggests installing symfony/yaml ()
    monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
    monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
    monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
    monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
    monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
    monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
    monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
    monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
    monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
    monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
    monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
    league/flysystem suggests installing league/flysystem-aws-s3-v2 (Allows you to use S3 storage with AWS SDK v2)
    league/flysystem suggests installing league/flysystem-aws-s3-v3 (Allows you to use S3 storage with AWS SDK v3)
    league/flysystem suggests installing league/flysystem-azure (Allows you to use Windows Azure Blob storage)
    league/flysystem suggests installing league/flysystem-cached-adapter (Flysystem adapter decorator for metadata caching)
    league/flysystem suggests installing league/flysystem-eventable-filesystem (Allows you to use EventableFilesystem)
    league/flysystem suggests installing league/flysystem-rackspace (Allows you to use Rackspace Cloud Files)
    league/flysystem suggests installing league/flysystem-sftp (Allows you to use SFTP server storage via phpseclib)
    league/flysystem suggests installing league/flysystem-webdav (Allows you to use WebDAV storage)
    league/flysystem suggests installing league/flysystem-ziparchive (Allows you to use ZipArchive adapter)
    league/flysystem suggests installing spatie/flysystem-dropbox (Allows you to use Dropbox storage)
    league/flysystem suggests installing srmklive/flysystem-dropbox-v2 (Allows you to use Dropbox storage for PHP 5 applications)
    laravel/framework suggests installing aws/aws-sdk-php (Required to use the SQS queue driver and SES mail driver (~3.0).)
    laravel/framework suggests installing doctrine/dbal (Required to rename columns and drop SQLite columns (~2.5).)
    laravel/framework suggests installing ext-pcntl (Required to use all features of the queue worker.)
    laravel/framework suggests installing ext-posix (Required to use all features of the queue worker.)
    laravel/framework suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers and the ping methods on schedules (~6.0).)
    laravel/framework suggests installing league/flysystem-aws-s3-v3 (Required to use the Flysystem S3 driver (~1.0).)
    laravel/framework suggests installing league/flysystem-cached-adapter (Required to use Flysystem caching (~1.0).)
    laravel/framework suggests installing league/flysystem-rackspace (Required to use the Flysystem Rackspace driver (~1.0).)
    laravel/framework suggests installing nexmo/client (Required to use the Nexmo transport (~1.0).)
    laravel/framework suggests installing pda/pheanstalk (Required to use the beanstalk queue driver (~3.0).)
    laravel/framework suggests installing predis/predis (Required to use the redis cache and queue drivers (~1.0).)
    laravel/framework suggests installing pusher/pusher-php-server (Required to use the Pusher broadcast driver (~3.0).)
    laravel/framework suggests installing symfony/dom-crawler (Required to use most of the crawler integration testing tools (~3.3).)
    laravel/framework suggests installing symfony/psr-http-message-bridge (Required to psr7 bridging features (~1.0).)
    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.)
    filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
    sebastian/global-state suggests installing ext-uopz (*)
    phpunit/phpunit-mock-objects suggests installing ext-soap (*)
    phpunit/php-code-coverage suggests installing ext-xdebug (^2.5.5)
    phpunit/phpunit suggests installing phpunit/php-invoker (^1.1)
    phpunit/phpunit suggests installing ext-xdebug (*)
    

    这个安装没有问题 . 例如 monolog/monolog 建议安装 ext-mongo ,但显然我不需要它,所以忽略这个建议是安全的,对所有其他人也是如此 .

相关问题