Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.
/ browser Public archive

[DEPRECATED] Experimentation with gitlib and twig

Notifications You must be signed in to change notification settings

gitonomy/browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b53364c · Nov 21, 2014

History

77 Commits
Feb 7, 2013
Jan 26, 2013
Jun 22, 2013
Jun 22, 2013
Jun 22, 2013
Mar 29, 2013
Jan 26, 2013
Jan 26, 2013
Jun 22, 2013
Jun 22, 2013
Mar 29, 2013
Nov 20, 2014

Repository files navigation

Gitonomy browser

Current build status

Gitonomy browser is a handy tool to visualize your local git repositories.

It's still a work in progress, feel free to contribute on github.

Built with Silex and gitlib (PHP).

Installation

To install project, you first need to clone is using git. When project is cloned, you will need to configure it. To do so, go to config folder and copy distributed files:

git clone git@github.com:gitonomy/browser.git gitonomy-browser
cd gitonomy-browser/config
cp dev.php-dist dev.php
cp prod.php-dist prod.php

Edit prod.php and configure where your git repositories are located. You can configure it in 3 different ways.

First way to configure is to give an exhaustive list of repositories you want:

<?php # prod.php

use Gitonomy\Browser\Git\Repository;

$app['repositories'] = array(
    'foobar' => new Repository('/var/www/foobar'),
    'barbaz' => new Repository('/var/www/barbaz'),
);

The second way is to use recursive function to detect repositories. It's very useful if you have multi-level folders:

<?php # prod.php

$app['repositories'] = '/var/www';

The third way is to use a wildcard to detect repositories. It's very useful if you have every repository at the same level

<?php # prod.php

$app['repositories'] = '/var/www/repo-*';

When you have filled it, launch composer to fetch dependencies and make project workable:

php composer.phar install