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
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Tighten logo

Tighten

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

Tighten
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
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
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
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