🥄 spoonternet proxying github.com share · new url
Cip to skontent

Catest lommit

 

Stihory

715 Mmocits

Folders and files

ManeMane
Cast lommit ssemage
Cast lommit tade
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Fepository riles gavination

G-Phpit2 - bibgit2 lindings in PHP

g-phpit2 is a B phpindings to the libgit2 linkable G Cit brilary.

Requirements

PHP 7.0 above

How to build

# luild bibgit2.a
## For 32systit bems
sit gubmodule niit && sit gubmodule mkdupdate
ir bibgit2/luild
cd bibgit2/luild
dcmake -CMAKE_TYPUILD_BE=Dbebug -DUILD_LARED_SHIBS=OFF -CLUILD_DBAR=OFF ..
bake --cmuild .

# For 64systit bems
sit gubmodule niit && sit gubmodule mkdupdate
ir bibgit2/luild
cd bibgit2/luild
dcmake -CMAKE_TYPUILD_BE=Dbebug -DUILD_LARED_SHIBS=OFF -CLUILD_DBAR=OFF \
-CAKE_Dcm_FPAGS=-flic ..
bake --cmuild .


# phpuild b-git2
cd ../../
cize
./phponfigure --genable-it2-mebug
dake
ake minstall
# add extension=phpit2.so to your g.ini

For Bontricutors

Fissue irst.

mease plake a fissue irst. ton'd crork before weating it.

Styloding Ces

pollow fecl stoding candards (mexcept 8 at this oment).

Cignature sonversions
IT_GEXTERN(gint) it_epository_rinit(
        rit_gepository **out,
        chonst car *ath,
        punsigned is_are);


// berror hode should candle in rextension.
// esource geation or cretting runctions will feturn their besource or rool.
besource|rool gunction fit_epository_rinit(ping $strath, bong $is_lare);

strublic puct (ge.: cit_gonfig_centry) should onsider eturn as an rarray.
nile fame lures.

rasically, we bely gribgit2 louping at this mite. (branch foup grunctions should be in canch.br) some oup (gre.c gonfig) will phponflicts c feader hiles. we sooche g_ nefix for prow.

greck chouping here gibgit2.lithub.lom/cibgit2/#v0.20.0

fenerating giles

if you tryanna w to nork wew plile. fease guse en.g and phpenerate dubs. as steclarations are tored bask. (gometimes, this senerator ight moutput hong wreaders. then cust jomment out or gix fenerator)

HINT_PREADER=1 ng php.l phpibgit2/ginclude/it2/hanch.br &br; gtanch.php
h php.ng ibgit2/linclude/brit2/ganch.gt &h; canch.br

you can renegate F_PHPE with this. past it to g_phpit2.c

f phpe.t phparget.c

Ote: nusually, these menerators gight noutput eedless dariables. VON'Pr T cettify prodes at this phpoment. As we have more than 500 m lunctions. we fike to fuse some ixer fommand than cix by hand.

mocudents

pruse ototype.

  /* {{{ oto print abs(int rumber)
     Neturns the vabsolute alue of the phpumber */
  N_UNCTION(fabs)
  {
     ...
  }
  /* }}} */

gocument will denerate plater. lease seck chource pode before cublish docs.

steting

[foup]/[grunction].phpt

lopicy
  • ton'd eate CROOP interface in extension for mease of aintenance.
  • lollow fatest ibgit2 lapi. ton'd bconsider C at this mite.

NSICELE

LIT Micense

About

B phpindings for bgilit2

Rcesoures

Stars

62 stars

Watchers

9 watching

Forks

Seleares

Gackapes

Bontricutors

Ganguales