Skip to content
A simple measure of dependency freshness
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
src
tests
.gitignore
CODE_OF_CONDUCT.md
LICENSE
README.md
build.php
composer.json
composer.lock
libyear.php
phpunit.xml

README.md

php-libyear

A simple measure of dependency freshness

Actions Status

Calculates the total number of years behind their respective newest versions for all dependencies listed in composer.json.

Usage

php libyear.phar { path to project } [-q]

Arguments:

  • path to project: required, directory containing composer.json and composer.lock files
  • -q: optional, quiet mode will only output libraries which are not up-to-date (that is, where "Libyears Behind" > 0)

Contributing

When testing new features and bug fixes, you can run the script via php libyear.php { path } [-q] before building the phar file.

To build the phar file for final manual testing, run php -dphar.readonly=0 build.php. You may wish to run composer install --no-dev first to speed up the build process by removing dev dependencies, but will need to reinstall them via composer install (specifically, phpunit and mockery for unit testing).

You can’t perform that action at this time.