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
The Certification of Competence for Laravel logo

The Certification of Competence for Laravel

A community-driven, proctored assessment across 4 levels designed to validate real-world Laravel knowledge, from Junior to mastery-level Artisan. Official Vue.js, Official Nuxt, Angular, React, JS certifications also available.

The Certification of Competence for Laravel
Curotec logo

Curotec

World class Laravel experts with GenAI dev skills. LATAM-based, embedded engineers that ship fast, communicate clearly, and elevate your product. No bloat, no BS.

Curotec
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Blastup logo

Blastup

Blastup provides social media enhancement services including buying Instagram likes, followers, and views, with features like instant delivery and a variety of packages to suit different needs.

Blastup