Easily view all your contributor commit statistics to your organisation's projects in one place.
This project requires composer to install dependencies such as knplabs/github-api. You can find some instructions to install composer here, or you could just do...
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
Clone the repository
git clone [email protected]:fubralimited/github-org-contributor-stats.git
Run composer to install dependencies.
cd github-org-contributor-stats
composer install
Add your github API keys to the config file. You can set up a personal access token here.
cp config.php.example config.php
vim config.php
Import your repository commit data into the local SQLite database by running the import script from your command line:
php -f src/import.php
You can access the web interface through PHP's built in web-server, or using the Vagrant box (see below). To use PHP's webserver run the following command from your command line:
cd http
php -S localhost:8000
You should then be able to access the web interface through http://localhost:8000
If you can't use PHP's built in webserver, or you wish to test the scripts in a full LEMP environment, then you could use our Vagrant / Ansible scripts to deploy a development virtual machine (Vagrant box).
This project includes a VagrantFile and Ansible configuration to set up a local LEMP (Linux, NGINX, MySQL, PHP) test environment from which you can run the scripts. To use this, you will need VirtualBox, Vagrant and Ansible installed.
Firstly, install the ansible role requirements
sudo ansible-galaxy install -r requirements.yml
Then launch the Vagrant box with:
vagrant up
You should then be able to access the site via your browser on http://192.168.33.34
- Paul Maunders (Fubra Limited)
- Jeff Geerling - Ansible LEMP code