Posts Learn Components new Snippets new Categories Tags About Device Beast sponsor
/

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

20 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)

Snippets by

PostSrc poster

PostSrc

Full stack developer mainly focusing on the front end side of the web. The main author of PostSrc and loves writing tutorial and guides online.

Load comments for Get List of Outdated Packages in PHP Compser

new

PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.

View Components

Other Code Snippets

More