Hire Laravel developers with AI expertise at $20/hr. Get started in 48 hours.

Gitlib

gitonomy/gitlib image

Gitlib stats

Downloads
10.8M
Stars
442
Open Issues
20
Forks
69

View on GitHub →

Library for accessing git

Gitlib for Gitonomy - Laravel Package

Gitlib for Gitonomy is a PHP library designed to provide developers with methods to interact with Git repositories. It is suitable for PHP versions 5.6 and above. While it operates through shell calls and may not be the fastest solution, it offers convenience and simplicity for accessing Git functionalities.

Main Features:

  • Easy Installation: Installable via Composer, making it straightforward to integrate with your projects.
  • Comprehensive API: The library covers a wide range of Git operations such as commits, branches, diffs, logs, and more.
  • Enterprise Support: Available support through the Tidelift Subscription, ensuring enterprise-level maintenance and support.

Installation:

To install Gitlib, use Composer:

composer require gitonomy/gitlib

Or manually update your composer.json:

{
"require": {
"gitonomy/gitlib": "^1.3"
}
}

Example Usage:

<?php
use Gitonomy\Git\Repository;
 
$repository = new Repository('/path/to/repository');
 
foreach ($repository->getReferences()->getBranches() as $branch) {
echo '- '.$branch->getName().PHP_EOL;
}
 
$repository->run('fetch', ['--all']);

Documentation:

The package provides detailed API documentation for various aspects of Git handling:

  • Admin, Blame, Blob, Branch, Commit, Diff, Hooks, Log, References, Repository, Revision, Tree, Working Copy.

Notable Details:

  • The library makes direct shell calls for Git operations.
  • It supports PHP 5.6 and newer versions.
  • Ideal for developers looking for an easy-to-use Git management solution within their PHP applications.

For more information and professional support, consider the Tidelift Subscription which aids in maintaining the health and security of the package and its dependencies.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Gitonomy Gitlib Related Articles

How a code-driven monitoring tool can help you deliver successful software products image

How a code-driven monitoring tool can help you deliver successful software products

Read article
Keeping the Creativity in Code image

Keeping the Creativity in Code

Read article
Harpoon: Next generation time tracking and invoicing logo

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing
Honeybadger logo

Honeybadger

Simple developer-focused application monitoring for Laravel. Error tracking, log management, uptime monitoring, status pages, and more!

Honeybadger
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
PhpStorm logo

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift