Polyscope - The agent-first dev environment for Laravel

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.


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

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
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
Lucky Media logo

Lucky Media

Get Lucky Now - the ideal choice for Laravel Development, with over a decade of experience!

Lucky Media
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Shift logo

Shift

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

Shift
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell