Registry / utility / gitonomy-gitlib

gitonomy-gitlib

JSON →
library1.6.0phppackagistunverified

Library for accessing git repositories programmatically.

composer require gitonomy/gitlib
INSTALL
IMPORT
SIG · GITONOMY-GITLIB
G
gitonomy-gitlib
utilityphpv1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Repository
use Gitonomy\Git\Repository;

Opens a git repository and lists the last 5 commit subjects.

use Gitonomy\Git\Repository; $repo = new Repository('/path/to/repo'); $log = $repo->getLog('master', null, 5); foreach ($log as $commit) { echo $commit->getSubject() . "\n"; }
Debug
Known issues
gotchaRequires the git binary to be installed and accessible in the system PATH.
fix
Install git and ensure it's available via the command line.
affects: >=1.0.0
Upgrade
Version history
1.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
gitonomy-gitlib — pip install gitonomy-gitlib · libregistry