theshopworks/git-php-wrapper

A PHP wrapper for the Git version control system.

v0.7 2023-05-31 10:30 UTC

This package is not auto-updated.

Last update: 2024-04-17 17:00:17 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:

$ php vendor/bin/php-cs-fixer fix

Testing

$ php vendor/bin/phpunit

License

The MIT License (MIT). Please see License File for more information.