{"id":20940034,"url":"https://github.com/ecoapm/php-libyear","last_synced_at":"2025-04-06T03:05:36.477Z","repository":{"id":36971930,"uuid":"235475007","full_name":"ecoAPM/php-libyear","owner":"ecoAPM","description":"A simple measure of dependency freshness","archived":false,"fork":false,"pushed_at":"2025-04-01T11:59:20.000Z","size":153,"stargazers_count":27,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T03:05:32.467Z","etag":null,"topics":["composer","dependencies","dependency-management","hacktoberfest","libyear","php"],"latest_commit_sha":null,"homepage":"https://libyear.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ecoAPM.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-22T01:21:49.000Z","updated_at":"2025-04-01T11:59:24.000Z","dependencies_parsed_at":"2023-02-10T16:45:54.703Z","dependency_job_id":"d2ce73c5-747d-4afa-ac81-e0afe91a0b6d","html_url":"https://github.com/ecoAPM/php-libyear","commit_stats":{"total_commits":74,"total_committers":6,"mean_commits":"12.333333333333334","dds":"0.45945945945945943","last_synced_commit":"4e2551cc8599788acadf95a1dd365e643d680746"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2Fphp-libyear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2Fphp-libyear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2Fphp-libyear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoAPM%2Fphp-libyear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecoAPM","download_url":"https://codeload.github.com/ecoAPM/php-libyear/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427005,"owners_count":20937200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["composer","dependencies","dependency-management","hacktoberfest","libyear","php"],"created_at":"2024-11-18T23:08:39.474Z","updated_at":"2025-04-06T03:05:36.456Z","avatar_url":"https://github.com/ecoAPM.png","language":"PHP","funding_links":["https://github.com/sponsors/ecoAPM"],"categories":[],"sub_categories":[],"readme":"# php-libyear\nA simple measure of dependency freshness\n\n[![Version](https://img.shields.io/packagist/v/ecoapm/libyear?logo=packagist\u0026label=Install)](https://packagist.org/packages/ecoAPM/libyear)\n[![CI](https://github.com/ecoAPM/php-libyear/workflows/CI/badge.svg)](https://github.com/ecoAPM/php-libyear/actions)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_php-libyear\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=ecoAPM_php-libyear)\n\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_php-libyear\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ecoAPM_php-libyear)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_php-libyear\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ecoAPM_php-libyear)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ecoAPM_php-libyear\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ecoAPM_php-libyear)\n\n\nCalculates the total number of years behind their respective newest versions for all dependencies listed in `composer.json`.\n\n## Requirements\n\n- PHP v7.4 or later\n- Composer v2\n\nNote that 2.3.0 is the last release that will support PHP 7.4 and 8.0; v3 (expected Q3 2023) will only support PHP 8.1+.\n\nOngoing commercial support for legacy versions of PHP is available for [Corporate, Premier, and Title Sponsors](https://github.com/sponsors/ecoAPM).\n\n## Installation\n\n### Recommended: Composer\n\nRun `composer global require ecoapm/libyear` and make sure your global composer directory is in your `$PATH`.\n\nAlternatively, `composer require --dev ecoapm/libyear` will add `libyear` as a local dev dependency for your current directory's app.\n\n### Alternative: PHP Archive (PHAR) File\n\nDownload `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.\n\n### Windows Users\n\nNote that PHP for Windows does not include CA certificates, so you'll need to install them if you haven't done so already:\n1. Download http://curl.haxx.se/ca/cacert.pem to somewhere permanent (PHP's `extras` directory is a great place)\n1. Add `curl.cainfo = \"[full path to]\\cacert.pem\"` to your `php.ini` file\n\n## Usage\n\n`vendor/bin/libyear \u003cpath\u003e [-q|--quiet] [-v|--verbose]`\n\n(or `php path/to/libyear.phar \u003cpath\u003e [-q|--quiet] [-v|--verbose]` for the PHAR version)\n\nArguments:\n- `path`: required, directory containing `composer.json` and `composer.lock` files\n\nOptions:\n- `-h`, `--help`: show help text and exit without checking dependencies\n- `-q`, `--quiet`: quiet mode will only output libraries which are not up-to-date (that is, where \"Libyears Behind\" \u003e 0)\n- `-u`, `--update`: update mode will write the latest version info to your `composer.json` file (note that you'll still need to run `composer update` to actually update your local dependencies)\n- `-v`, `--verbose`: verbose mode will output processing details like when a library isn't found in a repository\n\n## Contributing\n\nPlease be sure to read and follow ecoAPM's [Contribution Guidelines](CONTRIBUTING.md) when submitting issues or pull requests.\n\nWhen testing new features and bug fixes, you can run the script via `./libyear { path } [-q]` before building the `phar` file.\n\nTo 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).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoapm%2Fphp-libyear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecoapm%2Fphp-libyear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoapm%2Fphp-libyear/lists"}