Download the PHP package mnapoli/gitstats without Composer
On this page you can find all versions of the php package mnapoli/gitstats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mnapoli/gitstats
More information about mnapoli/gitstats
Files in mnapoli/gitstats
Package gitstats
Short Description Iterate through git commits to gather statistics
License MIT
Informations about the package gitstats
Iterate through git commits to gather statistics
Installation
- clone this repository
- install Composer dependencies
- symlink the
gitstats
to your/usr/local/bin
:ln -s /home/<you>/code/gitstats/gitstats /usr/local/bin/gitstats
Alternatively you can install the Composer package globally (composer global require mnapoli/gitstats
)
Usage
-
Add a
.gitstats.yml
file in your current directory: - Run the application:
The repository will be cloned in a temporary directory. All tasks will be run against each commit. Ensure the repository doesn't contain modifications.
The output is formatted as CSV:
You can write the output to a file:
You can then import that into a database or open it up with Excel or whatever.
MySQL
You can output the result as SQL queries to insert/update a MySQL table:
Limit the number of commits processed
You can limit the number of commits to process using the --max
parameter:
Show the progress
You can show a progress bar on stderr using the --progress
parameter. When using that parameter it makes sense to redirect the output to a file or another command:
All versions of gitstats with dependencies
mnapoli/silly Version ~1.6
php-di/php-di Version ~5.4
symfony/yaml Version ~3.1|~4.0
symfony/filesystem Version ~3.1|~4.0