PHP: Composer 2.0 revised the resolution of dependencies

Source: Heise.de added 26th Oct 2020

Composer, the open source framework for dependency management for PHP applications, is available in version 2.0. In addition to some changes, the update brings fundamental innovations and revises the error reporting. The primary goal of the update is to improve the performance of the framework.

Jordi Boggiano, the developer behind the framework, has revised the protocol that is used between Composer and packagist.org is used. In addition, changes have been made to the architecture, such as the way dependency updates are performed internally. For developers, these changes are intended to result in more deterministic updates. The used local status of the vendor directory should no longer hinder updates.

Improved performance and new runtime features With With the changes to the resolution of dependencies and the parallel downloading of files with the help of adapted curl and constraint evaluation, the development team would like to improve both speed and memory usage. In addition, the use of require or remove and partial updates will be faster, since Composer now only loads the metadata of the packages that are changed.

The developers behind the framework have also added a new platform check step to Composer. When initializing vendor / autoload.php it is checked whether the PHP version / extension used matches what is stated in the dependencies is expected, and fails on the other side.

Better error reporting In addition, there is a new class Composer InstalledVersions , which the framework loads automatically in every project and is available in runtime should. The development team has also worked on bug reporting, which is supposed to show more clearly when dependencies cannot be resolved.

betterCode () presents: PHP 8 – The online event on 26. November 2020 You can learn this: PHP 8 is here, and now? What can the new JIT compiler do? How does the PHP 8 type system work? Syntax highlights: What can they do new attributes? and disadvantages of metaprogramming migration on PHP 8: How do I get my code fit? Behind the Scenes: How is PHP developed today? Practical examples and hand-on information from experts To At this point in time, the popular tool still supports PHP versions that have the End of Life (E

Read the full article at Heise.de

media: Heise.de  
keywords: Memory  Open Source  

Related posts


Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 88

Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 88

Related Products



Notice: Undefined variable: all_related in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 91

Warning: Invalid argument supplied for foreach() in /var/www/vhosts/rondea.com/httpdocs/wp-content/themes/rondea-2-0/single-article.php on line 91