https://github.com/adrianorsouza/compare-system-versions
Check package and frameworks versions within projects running in production.
https://github.com/adrianorsouza/compare-system-versions
csv version version-checker
Last synced: 8 months ago
JSON representation
Check package and frameworks versions within projects running in production.
- Host: GitHub
- URL: https://github.com/adrianorsouza/compare-system-versions
- Owner: adrianorsouza
- License: bsd-3-clause
- Created: 2020-07-23T00:19:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T16:10:39.000Z (about 3 years ago)
- Last Synced: 2025-01-27T23:47:44.308Z (about 1 year ago)
- Topics: csv, version, version-checker
- Language: PHP
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Compare System Versions
=======================
Check package and frameworks versions within projects running in production.
This library look up on each project and scan for `composer.json` and `package.json`
files to check if the versions of its installed packages are outdated.
[screenshot]: ./screenshot.png "Screenshot"
![Screenshot][screenshot]
## Setup
Create a fresh composer project then install this project.
mkdir /var/www/compare-system-versions
composer init
git init
echo "/vendor/" > .gitignore
git add .gitignore
git commit -m "First Commit"
## Install
Download the latest release `csv.phar`.
curl -Lo csv https://github.com/adrianorsouza/compare-system-versions/releases/download/v0.1.0/csv.phar
chmod +x csv
sudo mv csv /usr/local/bin/
## Config
First Create a config YAML file `config.yaml`:
```yaml
system_versions:
latest:
php: 7.4.7
nginx: 1.18.0
mysql: 8.0.20
platform: Ubuntu 20.04 LTS (Focal Fossa)
current:
php: 7.3.1
nginx: 1.16.0
mysql: 8.0.20
platform: Ubuntu 18.04 LTS (Bionic Beaver)
package_versions:
latest:
phpunit: 9.2.0
laravel: 7.18.0
react: 16.13.1
grunt: 1.2.1
iterator:
dir: /var/www
packages:
- composer.lock
- package-lock.json
- bower.json
exclude:
- bower_components
- node_modules
- public
- public_html
- vendor
- compare-system-versions
options:
title: System Versions Compare
build_dir: public/
```
## Usage
php csv.phar update config.yaml
NOTES ABOUT CONFIG:
- `build_dir` are always relative to the current directory, so don't define it as absolute path.
The code above will scan for projects within `/var/www` dir and get the versions for packages and versions like:
- PHP
- Ubuntu
- Laravel Framework
- ReactJS Framework
- GruntJS Task Runner
## Develop
Generate a phar file:
box compile
## Author
**Adriano Rosa** (https://adrianorosa.com)
## Licence
Copyright © 2020, Adriano Rosa
All rights reserved.
For the full copyright and license information, please view the LICENSE
file that was distributed within the source root of this project.