gitoltie is a perl script which takes an login name and check if, based on who you are, the git command should be executed or denied: it is an authorization layer.
As long as your framework (in your case PHP) can call that perl script, you can plug gitolite in any system.
That is what I do with:
- gitweb and the perl script
gitweb.conf.pl.tpl
- cgit and the perl script
cgit.pl.tpl
(called from the apache config)
As long as your web server can call a perl script before accessing php pages, you can use gitolite.
Trying to re-implement gitolite in php (as in this github project) would not be as good a solution.