Posts Learn Components Snippets Categories Tags Tools About
/

Get List of Outdated Packages in PHP Compser

Learn how to use composer to check outdated package and filter ou

Created on Jul 01, 2021

203 views

Sometimes you might want to check the versions of your composer.json package for a new available version. This is important to filter out which package is ready first before upgrade to prevent any possible backwards compatibility​ issues.

To get the new version of a composer package you can run the "composer outdated" command.
composer outdated

Once you have run the command, you will get the information below.
Color legend:
- patch or minor release available - update recommended
- major release available - update possible
doctrine/dbal           2.13.2 3.1.1 Powerful PHP database abstraction layer (DBAL) with many features for database schema intro...
egulias/email-validator 2.1.25 3.1.1 A library for validating emails against several RFCs
guzzlehttp/psr7         1.8.2  2.0.0 PSR-7 message implementation that also provides common utility methods
league/flysystem        1.1.4  2.1.1 Filesystem abstraction: Many filesystems, one API.
moontoast/math          1.2.1  1.2.1 A mathematics library, providing functionality for large numbers
Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead.
psr/container           1.1.1  2.0.1 Common Container Interface (PHP FIG PSR-11)

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

Load comments for Get List of Outdated Packages in PHP Compser

)