Compositeur/Laravel: Comment ajouter/mettre à jour un package spécifique

Comment ajouter/mettre à jour un package spécifique à l'aide du compositeur? J'utilise la dernière Laravel ainsi ne sais pas si ça compte, mais tout ce qui peut aider à déterminer la réponse.

J'ai aussi essayé de la suite à partir d'un vieux Stackoverflow post que j'avais trouvé, mais il ne fonctionne pas pour moi. En annexe le paquet de compositeur.json, puis a procédé à la mise à jour tout de toute façon. Voici le lien: Comment mettre à jour une bibliothèque avec le Compositeur?

Et voici le colis que j'ai essayé de l'ajouter à mon projet: https://github.com/barryvdh/laravel-dompdf

Je vous remercie beaucoup de votre temps et de votre aide!

Edit:


Besoin et de mise à jour ne sont pas de travail qu'ils mettent à jour tout aussi bien. Est-il possible que j'exécute la commande incorrecte? Je suis encore vert derrière les oreilles quand il s'agit de compositeur :S

$ composer require barryvdh/laravel-dompdf
lease provide a version constraint for the barryvdh/laravel-dompdf requirement: *
/composer.json has been updated
oading composer repositories with package information
pdating dependencies (including require-dev)
- Removing orchestra/testbench (v2.1.1)
- Removing symfony/security (v2.4.3)
- Removing symfony/translation (v2.4.3)
- Installing symfony/translation (v2.4.6)
Loading from cache
- Removing symfony/http-foundation (v2.4.3)
- Installing symfony/http-foundation (v2.4.6)
Loading from cache
- Removing symfony/event-dispatcher (v2.4.3)
- Installing symfony/event-dispatcher (v2.5.0)
Loading from cache
- Removing symfony/debug (v2.4.3)
- Installing symfony/debug (v2.4.6)
Loading from cache
- Removing symfony/http-kernel (v2.4.3)
- Installing symfony/http-kernel (v2.4.6)
Loading from cache
- Removing symfony/routing (v2.4.3)
- Installing symfony/routing (v2.4.6)
Loading from cache
- Removing symfony/process (v2.4.3)
- Installing symfony/process (v2.4.6)
Loading from cache
- Removing symfony/finder (v2.4.3)
- Installing symfony/finder (v2.4.6)
Loading from cache
- Removing symfony/dom-crawler (v2.4.3)
- Installing symfony/dom-crawler (v2.4.6)
Loading from cache
- Removing symfony/css-selector (v2.4.3)
- Installing symfony/css-selector (v2.4.6)
Loading from cache
- Removing symfony/console (v2.4.3)
- Installing symfony/console (v2.4.6)
Loading from cache
- Removing symfony/browser-kit (v2.4.3)
- Installing symfony/browser-kit (v2.4.6)
Loading from cache
- Removing swiftmailer/swiftmailer (v5.1.0)
- Installing swiftmailer/swiftmailer (v5.2.0)
Loading from cache
- Removing stack/builder (v1.0.1)
- Installing stack/builder (v1.0.2)
Loading from cache
- Removing patchwork/utf8 (v1.1.21)
- Installing patchwork/utf8 (v1.1.23)
Loading from cache
- Removing nesbot/carbon (1.8.0)
- Installing nesbot/carbon (1.9.0)
Loading from cache
- Removing monolog/monolog (1.9.0)
- Installing monolog/monolog (1.10.0)
Loading from cache
- Removing symfony/filesystem (v2.4.3)
- Installing symfony/filesystem (v2.5.0)
Loading from cache
- Installing symfony/security-core (v2.4.6)
Loading from cache
- Removing laravel/framework (v4.1.28)
- Installing laravel/framework (v4.1.30)
Loading from cache
- Removing chumper/datatable (2.2.2)
- Installing chumper/datatable (2.3)
Loading from cache
- Removing ivaynberg/select2 (3.4.6)
- Installing ivaynberg/select2 (3.4.8)
Loading from cache
- Installing phenx/php-font-lib (0.2.2)
Loading from cache
- Installing dompdf/dompdf (v0.6.1)
Loading from cache
- Installing barryvdh/laravel-dompdf (v0.3.1)
Loading from cache
symfony/security-core suggests installing symfony/validator (For using the user password constraint)
symfony/security-core suggests installing symfony/expression-language (For using the expression voter)
Generating autoload files
Compiling component files
Generating optimized class loader
Est-t-il des raisons pour lesquelles vous voulez mettre à jour un seul paquet?
Oui, je ne souhaite pas mettre à jour tout ce qu'il peut y avoir des modifications à l'un des différents paquets qui peuvent ou peuvent ne pas briser l'application web donc je ne veux pas prendre de chance. Je pourrais juste installer le compositeur dans une diff répertoire et ajouter le paquet dont j'ai besoin après lequel je vais vous suffit de le transférer vers le vendeur dans mon application principale.

OriginalL'auteur adamj | 2014-06-12