How to get composer to update version numbers to the latest ones available in composer.json?

Viewed 12450

In my composer.json config file, I have:

"require": {
    "zendframework/zend-log" : "~2.3",
 },
"require-dev": {
    "phpunit/phpunit": "^5.4"
 } 

I want:

"require": {
   "zendframework/zend-log" : "^2.9",
},
"require-dev": {
    "phpunit/phpunit": "^6.2"
 } 

Note the version number changes

How? I want it to be done automatically without me having to look up each individual latest version that's available and edit it manually.

There is this question but it does not help: How to resolve package not found error when trying to make the composer get the latest package versions?

1 Answers
Related