php-git icon indicating copy to clipboard operation
php-git copied to clipboard

Documentation and Examples

Open johanneshahn opened this issue 13 years ago • 7 comments

tried to find out what (int type) is, api snippet -> string $odb->hash(string contents, int type) found definition here http://libgit2.github.com/libgit2/#HEAD/type/git_otype

johanneshahn avatar Mar 31 '12 17:03 johanneshahn

ah, sorry. I wrote the document once But I've made drastic change so gh-page document is completely out-dated. now, README.md is only one.

php-git examples: https://github.com/chobie/kokuban/blob/master/Kokuban/GistProvider.php

https://github.com/chobie/Git2RepositoryBrowserBundle/blob/master/src/Chobie/Bundle/Git2RepositoryBrowserBundle/Controller/DefaultController.php

I want to add documentation. But probably it'll take long time as php-git has many classes and methods. please feel free to ask me If you had some questions when using php-git.

chobie avatar Apr 01 '12 06:04 chobie

8 months have passed, and now it seems that the few examples around are not even compatible anymore (Git vs Git2 classes). I've tried to list the contents of a repo from what is in the README but got nowhere. Exposing a list of classes an methods would already be helpful.

xSmurf avatar Nov 22 '12 16:11 xSmurf

@xSmurf https://gist.github.com/4243306 , doest it help? I generate it with generating PHP model for PDT and collaborating with PHP doc:howto:getting started. In my computer where php-git loaded in php.ini file, I run:

~/opt/php53apache/bin/php ~/utility/generate/generate.php ~/src/subversion/phpdoc/en/

gwijayas avatar Dec 09 '12 04:12 gwijayas

how to make a pull for this bind?

sidealice avatar Nov 23 '13 10:11 sidealice

i mean if i want to pull the git using php-git , how to get this done?

sidealice avatar Nov 23 '13 10:11 sidealice

@sidealice currently not supported yet. use git command instead.

chobie avatar Nov 23 '13 12:11 chobie

thanks understand.

sidealice avatar Nov 23 '13 13:11 sidealice