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

Other Useful Business Software
Auth for GenAI | Auth0 Icon
Auth for GenAI | Auth0

Enable AI agents to securely access tools, workflows, and data with fine-grained control and just a few lines of code.

Easily implement secure login experiences for AI Agents - from interactive chatbots to background workers with Auth0. Auth for GenAI is now available in Developer Preview
Try free now
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