Home / Snippets / Get List of Outdated Packages in PHP Compser
Get List of Outdated Packages in PHP Compser cover

Get List of Outdated Packages in PHP Compser

209

3 years ago

0 comments

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)
notion avatar

Ahabz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this