Download the PHP package antogno/gitinfo without Composer

On this page you can find all versions of the php package antogno/gitinfo. 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 gitinfo

GitInfo

License Last commit Last release

GitInfo is a tool that lets you get information about the current Git repository.


Installation

Use the dependency manager Composer to install GitInfo.

Usage

Get the Git version:

Get any deleted file:

Get any modified file:

Get any renamed file:

Get any unmerged file:

Get any untracked file:

Get any staged file:

Get any unstaged file:

Author

Whether the given author exists or not:

Get the author of the current commit:

Get the given author, if exists:

Get the authors list:

Each of the previous three methods returns an AuthorResource object (or a list of such).

AuthorResource

Get the author name:

Get the author email:

Get the author commits (CommitResource list):

Branch

Whether the given branch exists or not:

Get the current branch:

Get the given branch, if exists:

Get the branches list:

Each of the previous three methods returns a BranchResource object (or a list of such).

BranchResource

Get the author name:

Get the branch last commit (CommitResource):

Commit

Whether a commit with the given hash exists or not:

Get the current commit:

Get the given commit, if exists:

Get the commits list:

Each of the previous three methods returns a CommitResource object (or a list of such).

CommitResource

Get the long commit hash:

Get the short commit hash:

Get the commit message:

Get the commit date (DateTime):

Get the commit author (AuthorResource):

Tag

Whether the given tag exists or not:

Get the current tag, if in a tag:

Get the given tag, if exists:

Get the tags list:

Each of the previous three methods returns a TagResource object (or a list of such).

TagResource

Get the tag name:

Get the tag last commit (CommitResource):

Remote

Whether the given remote exists or not:

Get the remote from which the current branch is tracking:

Get the given remote, if exists:

Get the remotes list:

Each of the previous three methods returns a RemoteResource object (or a list of such).

RemoteResource

Get the remote name:

Get the remote URL:

License

GitInfo is licensed under the terms of the Creative Commons Zero v1.0 Universal license.

For more information, see the Creative Commons website.


All versions of gitinfo with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.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 antogno/gitinfo contains the following files

Loading the files please wait ....