Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pecha <[email protected]>
  • Loading branch information
janpecha committed Apr 19, 2013
1 parent da275d3 commit abc1bd1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Git-PHP
-------

Library for work with Git from PHP.

``` php
<?php
$git = new Cz\Git\Git;
$filename = __DIR__ . '/my-file.txt';
file_put_contents($filename, "Lorem ipsum\ndolor\nsit amet");

if($git->isChanges())
{
$git->add($filename)
->commit('Added a file.');
}
```

0 comments on commit abc1bd1

Please sign in to comment.