Download the PHP package ggioffreda/git without Composer

On this page you can find all versions of the php package ggioffreda/git. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package git

Git Component

This component helps interacting with the Git command line tool and the Git-Flow extension.

This tool is built using the Symfony Process Component (https://github.com/symfony/Process) but can be used in any PHP projects. The requirements are specified in the composer.json file:

Build Status

Installation

This component is available for installation through composer. From command line run:

$ composer require "ggioffreda/git" "~0.1"

Or add the following to your composer.json in the require section:

"require": {
    ... other requirements ...,
    "ggioffreda/git": "~0.1"
}

For more information check the project page on Packagist.

Usage - Git

The list of shortcut and self-explanatory methods implemented for Git:

List of other methods provided for Git:

List of static methods and basic features for Git:

When the execution of a Git command fails because of wrong options or for unknown reasons the any method can return a Gioffreda\Component\Git\Exception\GitProcessException, while if the error happens parsing the output of the command the exception will be of Gioffreda\Component\Git\Exception\GitParsingOutputException. Both share the same parent so they can be caught at once if needed Gioffreda\Component\Git\Exception\GitException.

Usage - GitFlow

List of shortcut and self-explanatory methods implemented for Git-Flow:

Beware if the git-flow extension is not available all the above methods (but output and extend) will throw an exception.

Example

For a real life example check this out: Git-Guardian. It's a command line interface for backing up locally all your remote repositories from either GitHub or BitBucket.

The following example shows how to use the component. All non getter methods not used to read properties or command output implement a fluent interface to improve readability:

Resources

You can run the unit tests with the following command (requires phpunit):

$ cd path/to/Gioffreda/Component/Git/
$ composer.phar install
$ phpunit

License

This software is distributed under the following licenses: GNU GPL v2, MIT License. You may choose the one that best suits your needs.


All versions of git with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
symfony/process Version >=2.4,<4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ggioffreda/git contains the following files

Loading the files please wait ....