theshopworks / git-php-wrapper
A PHP wrapper for the Git version control system.
Installs: 3 176
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Forks: 0
pkg:composer/theshopworks/git-php-wrapper
Requires
- php: ^8.1
 - ext-fileinfo: *
 - illuminate/collections: ^10.13
 - ondram/ci-detector: ^4.1
 - spatie/regex: ^3.1
 - symfony/console: ^6.2
 - symfony/event-dispatcher: ^6.2
 - symfony/process: ^6.2
 - symfony/var-dumper: ^5.1
 
Requires (Dev)
- fakerphp/faker: ^1.22
 - friendsofphp/php-cs-fixer: ^3.17
 - mockery/mockery: ^1.5
 - php-parallel-lint/php-parallel-lint: ^1.3
 - phpunit/phpunit: ^10.1
 - squizlabs/php_codesniffer: ^3.7
 
This package is not auto-updated.
Last update: 2025-10-30 00:02:43 UTC
README
A PHP wrapper for the Git version control system.
Installation
Add the git package to your composer.json file.
{
    "require": {
        "theshopworks/git-php-wrapper": "^0.1"
    }
}
Or via the command line in the root of your project.
$ composer require "theshopworks/git-php-wrapper:^0.1"
Docker
Build local container
docker build -t git-php-wrapper .
Use script
docker run --rm -v $(pwd):/app -w /app git-php-wrapper
Using Composer
docker run --rm -v $(pwd):/app -w /app git-php-wrapper php /usr/bin/composer
Code Style
docker run --rm -v $(pwd):/app -w /app git-php-wrapper php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php -v && docker run --rm -v $(pwd):/app -w /app git-php-wrapper php vendor/bin/phpcbf -p
Tests
docker run --rm -v $(pwd):/app -w /app git-php-wrapper php vendor/bin/phpunit
Code Style
This project follows the following code style guidelines:
- PSR-2 & PSR-4 coding style guidelines.
 - Some chosen PHP-CS-Fixer rules.
 
$ php vendor/bin/php-cs-fixer fix
Testing
$ php vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.