Question

I have just installed laravel 4 using composer in my linux os. While it was downloading and installing all the packages it also gave me a lot of suggestions. It asked me to install

  1. symfony/config
  2. symfony/yaml
  3. symfony/dependemcy-injection
  4. symfony/class-loader
  5. symfony/validator
  6. doctrine/dbal
  7. symfony/expression-language
  8. doctrine/annotations
  9. ext-phpiredis
  10. ext-curl
  11. ext-gmp
  12. paer-pear/PHP_Compat
  13. ext-intl
  14. graylog2/gelf-php
  15. raven/raven
  16. doctrine/couchdb
  17. ruflin/elastica
  18. ext-amqp
  19. ext-mongo
  20. aws/aws-sdk-php
  21. rollbar/rollbar

Should I install these things. And if I have to then how would I install them? Thanks in advance. :D

Was it helpful?

Solution

You don't have to install them for Laravel to function any differently. You should only install them if you explicitly plan on using them. The install directions are usually found on the project's github page.

All of those packages can be found on http://www.packagist.com where you will easily be able to find them, see install directions, usage, etc...

To install them, usually you'd just add the appropriate line, usually found in the documentation, to your composer.json file, run composer update and they should automatically be made available to your project.

OTHER TIPS

You got suggestions for both PHP library packages (PHP code) and PHP extensions (C code).

You should only install the PHP libraries if you know you want to use them. The suggestion feature of Composer allows any developer of a package to let Composer announce on update that there might be more software that enhances the library, but is entirely optional. The description next to the package name might have details on why the package could be installed. For example, a library for FTP and HTTP access might want to use existing FTP or HTTP clients, and will announce both as suggestions. If you decide you don't need FTP access, you only require the HTTP client to be used.

You cannot install PHP extensions via Composer. Installing them usually requires some kind of administrator access to the server, and depends on which OS is installed and whether or not it allows to install these extensions as a regular software package, or needs to have the PECL install toolchain available. If a PHP library suggests a PHP extension, then this extension also is completely optional, and you probably will know that if you need that feature (like access to MongoDB), you need the PHP extension as a prerequisite, but are likely to already have it installed (which would skip this suggestion from the list because it is fulfilled).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top