A simple measure of dependency freshness. Calculates the total number of years behind their respective newest versions for all dependencies listed in composer.json. Run composer global require ecoapm/libyear and make sure your global composer directory is in your $PATH. Alternatively, composer require --dev ecoapm/libyear will add libyear as a local dev dependency for your current directory's app. Download libyear.phar from the latest release, and put it in the current directory, or somewhere in your $PATH to be able to reference it from anywhere. There are obviously more nuanced ways to calculate dependency freshness. The advantage of this approach is its simplicity. You will be able to explain this calculation to your colleagues in about 30s. If your system has two dependencies, the first one year old, the second three, then your system is four libyears out-of-date.

Features

  • Requires PHP v7.4 or later
  • Requires Composer v2
  • At Singlebrook we try to keep our client’s apps below 10 libyears
  • We regularly rescue projects that are over 100 libyears behind
  • Rails 5.0.0 (June 30, 2016) is roughly 1 libyear behind 5.1.2 (June 26, 2017).

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow php-libyear

php-libyear Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of php-libyear!

Additional Project Details

Operating Systems

Windows

Programming Language

PHP

Related Categories

PHP Software Development Software, PHP Package Managers

Registered

2022-08-24