Download the PHP package dev-kraken/php-commitlint without Composer

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

PHP CommitLint ๐ŸŽฏ

A powerful Git hooks and commit message linting tool for PHP projects - combining the best of husky and commitlint in a native PHP implementation.

PHP Version CI Tests

๐Ÿš€ Features

๐Ÿ“ฆ Installation

Install via Composer:

๐Ÿ”ง Quick Start

1. Install Git Hooks

2. Start Making Commits!

๐Ÿ“‹ Commands

Install Hooks

Install Git hooks and create default configuration:

Options:

Validate Commit Message

Validate commit messages against your configuration:

Options:

Manage Custom Hooks

Add and manage custom Git hooks:

Uninstall

Remove all installed Git hooks:

โš™๏ธ Configuration

PHP CommitLint can be configured via .commitlintrc.json file or within your composer.json. The tool automatically merges your custom configuration with sensible defaults.

Configuration File Priority

  1. .commitlintrc.json in your project root
  2. extra.php-commitlint in composer.json
  3. Default configuration

Complete Configuration Reference

Configuration Options Explained

General Settings

Rules Configuration

Type Rules (rules.type)
Scope Rules (rules.scope)
Subject Rules (rules.subject)
Body Rules (rules.body)
Footer Rules (rules.footer)

Pattern Validation (patterns)

Define custom regex patterns for additional validation:

Hook Configuration (hooks)

Control which Git hooks are installed:

Team-Wide Pre-Commit Commands (pre_commit_commands)

Configure commands that run automatically for all team members during pre-commit:

Benefits:

When any team member runs composer install (with auto_install: true), these commands automatically run before every commit.

Format Configuration (format)

๐ŸชŸ Windows Support

PHP CommitLint provides full Windows compatibility with automatic detection and setup:

Automatic Windows Support

Windows Installation

Windows Troubleshooting

If you see "PHP CommitLint not found":

  1. Ensure PHP is in your PATH: php --version
  2. Try using the batch file: vendor\bin\php-commitlint.bat install
  3. Check Git Bash compatibility: Use /c/path/to/php format

Common Windows Scenarios:

๐Ÿ“– Example Configurations

Minimal Configuration (examples/commitlintrc.minimal.json)

Strict Configuration (examples/commitlintrc.strict.json)

Configuration in composer.json

You can also configure PHP CommitLint in your composer.json:

๐Ÿ“ Commit Message Format

This package enforces the Conventional Commits specification:

Examples

Default Commit Types

Special Commit Types (Auto-Skip Validation)

The following commit types automatically skip validation:

๐Ÿ› ๏ธ Development & Testing

Running Tests

Code Quality

Available Make Commands

๐Ÿ”„ Integration with CI/CD

GitHub Actions

GitLab CI

๐Ÿšจ Error Codes

PHP CommitLint uses specific exit codes for different error conditions:

๐Ÿ”’ Security Features

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Start for Contributors

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes and add tests
  4. Run the test suite (composer test)
  5. Check code style (composer cs:check)
  6. Run static analysis (composer analyse)
  7. Commit your changes (git commit -m "feat: add amazing feature")
  8. Push to the branch (git push origin feature/amazing-feature)
  9. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

๐Ÿ“š Documentation

๐Ÿ“ž Support


Made with โค๏ธ by DevKraken


All versions of php-commitlint with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
psr/log Version ^3.0
symfony/console Version ^6.4|^7.0
symfony/process Version ^6.4|^7.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 dev-kraken/php-commitlint contains the following files

Loading the files please wait ....