This library provides methods to access Git repository from PHP.
It makes shell calls, which makes it less performant than any solution.
Anyway, it's convenient and don't need to build anything to use it. That's how we love it.
Documentation: https://gitonomy.com/doc/gitlib/master/
You can install git lib using Composer. Simply require the version you need:
$ composer require gitonomy/gitlib
or edit your composer.json
file by hand:
{
"require": {
"gitonomy/gitlib": "^1.1"
}
}
Available as part of the Tidelift Subscription
The maintainers of gitonomy/gitlib
and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.