Download the PHP package andkirby/commithook without Composer

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

CmHook

CmHook is GIT commit hook the code validator for PHP (Code Sniffer), CSS (base only), JS (JsHint) code and commit message formatter/filler with the issue tracker integration (JIRA, GitHub).

Gitter

The main purpose of this project is

Supported file types: php, phtml, js, coffee, css, scss, xml, sh, scss, css, json, less, html, htm.

The simplest commit message you could ever make

Target commit message:

This commit message will be generated automatically, we need to type only commit description:

See more details about short commit messages.

Installation

Latest release is v2.0.0-beta.47

Install globally

To get last beta version please define your minimum-stability.

Due to reason the package requires one package which still in "dev", please fetch it first:

Now fetch the package:

Enable hooks in a project (with predefined configuration)

If a project already have base configuration files all what you need to:

Sample .bashrc

Here is an example of .bashrc file for global using.

Separate installation

If global way doesn't work you may use installation via create-project.

Documentation references

Installation

Initialize configuration wizard
GIT integration: hook files installation

Password tracker update

Password update

Code validation

Ignore validation
Protect code
Enable JsHint validation (Javascript)

Commit message

Commit message format
Ignore commit message validation
Active task in commit message
Auto-explode commit message into the list

Problems

Bugs

Issue bugs list.

Code validators doesn't work with GIT cache

The code validation works with GIT but it doesn't support git cache. It means if you added a file (git add file.php), changed it, and trying to commit (without adding it into GIT cache). In commit, of course, you will get code from cache but validators will validate your real file. (#113)

Minor bugs in short commit message

#32

Tips & tricks

Redundant gaps in code

You may quickly find gaps/trailing spaces in your code by the regular expression:

Just use it in your IDE.

OS environment

Tested on Windows in GIT Bash v2.9.

Feel free to create your faced issue.

Release notes


All versions of commithook with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
rikby/console-helper Version ^0.11
rikby/crypter Version ~1.0@stable
symfony/console Version ~3.0@stable
symfony/filesystem Version ~2.5@stable
symfony/finder Version ~2.5@stable
chobie/jira-api-restclient Version ^2.0@dev
zendframework/zend-cache Version ~2.5@stable
knplabs/github-api Version ~1.4@stable
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 andkirby/commithook contains the following files

Loading the files please wait ....