Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Git Laravel Package

sebastianfeldmann/git

PHP library to access and interact with Git repositories. Provides a simple API for common Git commands and info (status, log, branches, tags), ideal for build scripts, CI tooling, and automation where you need Git data without shelling out manually.

View on GitHub
Deep Wiki
Context7
3.16.0
  • Add Rev functionality and validation

Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.15.3...3.16.0

3.14.2

Changes

  • Don't use deprecated methods anymore

Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.14.1...3.14.2

3.14.1

Changes

  • Add deprecation warnings

Full Changelog: https://github.com/sebastianfeldmann/git/compare/3.14.0...3.14.1

3.14.0
  • Add git var functionality
$config = $repo->getConfigOperator();
$vars   = $config->getVars();
print_r($vars);

Also supported are

Config::hasVar(string $name): bool
Config::getVar(string $name): string
Config::getVarSafely(string $name, string $default = ''): string
3.13.2

Fix iterable return types

3.13.1

Fixed a typed property access problem

3.13.0

Load of missing types added

3.12.2

Detect hooks directory by respecting the core.hooksPath config setting

3.12.1
3.12.0

Add comment access and validation methods

3.11.0

Add --diff-filter option to Log

3.10.0

Add reflog functionality to the LogOperator

3.9.3

Bugfix release :)

3.9.2

Add new Info::getRemoteBranches method

3.9.1

Switched back from short arrow to closure because of PHP 7.2

3.9.0

Allow to check multiple suffixes at once with Index::getStagedFilesOfTypes

3.8.6

Allow to filter the diff changed file set by file type (suffix)

3.8.5

Allow detection of squash and fixup commits

3.8.4

Fix issue #38 - thanks to @Chemiker90

3.8.3

Do not ignore permission errors while validating the HEAD commit

3.8.2

Add some type hints

3.8.1

Change the diff-filter from getStagedFiles and getStagedFilesOfType from AM to ACMR

3.8.0

Add new cloning functionality - thanks to @icanhazstring


$cloner = new Cloner();
$repo   = $cloner->clone('git@github.com:sebastianfeldmann/git.git');
...
3.7.1

Make sure the right diff algorithm is used - thanks to @ramsey

3.7.0
  • Add working tree manipulation
  • Fix diff parsing issues
3.6.0

Add StatusOperator to handle git status based commands

3.5.0

Add submodule repository support

3.4.1
  • PHP8 compatibility
3.4.0
  • Add ls-tree functionality
3.3.0
  • Add compareIndexTo feature
  • Add --unified option to git diff
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport