Need help with gitter?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

203 Stars 65 Forks BSD 3-Clause "New" or "Revised" License 86 Commits 7 Opened issues


Gitter allows you to interact in an object oriented manner with Git repositories.

Services available


Need anything else?

Contributors list


Build Status

Gitter allows you to interact in an object oriented manner with Git repositories via PHP. The main goal of the library is not to replace the system

command, but provide a coherent, stable and performatic object oriented interface.

Most commands are sent to the system's

command, parsed and then interpreted by Gitter. Everything is transparent to you, so you don't have to worry about a thing.


  • git ( (tested with

Authors and contributors


New BSD license


Gitter is very easy to use and you'll just need a few method calls to get started. For example, to create a new repository:

$client = new Gitter\Client;
$repository = $client->createRepository('/home/user/test');

Or a bare repository:

$client = new Gitter\Client;
$repository = $client->createRepository('/home/user/test', true);

Or to open an existing repository:

$client = new Gitter\Client;
$repository = $client->getRepository('/home/user/anothertest');

Both methods will return a

object, which has various methods that allow you to interact with that repository.

Getting a list of commits

Once you get hold of the

object, you can use:
$commits = $repository->getCommits();

To get a list of various commits.

Getting a single commit

Given a specific commit hash, you can find information about that commit:

$commit = $repository->getCommit('920be98a05');

Getting statistics for repository

Statistics aggregators can be added to the repository:

    new Gitter\Statistics\Contributors,
    new Gitter\Statistics\Date,
    new Gitter\Statistics\Day,
    new Gitter\Statistics\Hour

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.