Download the PHP package mubbi/laravel-commit-lint without Composer

On this page you can find all versions of the php package mubbi/laravel-commit-lint. 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 laravel-commit-lint

Laravel Commit Lint

Latest Stable Version Total Downloads PHP Version Require Laravel Version Require Coverage Status

Requirements

Overview

Laravel Commit Lint helps teams enforce Conventional Commits in Laravel projects by automatically validating commit messages using a Git hook. This ensures consistent commit history and enables better automation and tooling.

Features

Installation

Usage

After installation, every commit will be checked for Conventional Commit compliance.

If your message does not match the required format, the commit will be rejected with guidance.

Example of valid commit messages

Example of invalid commit messages

How it works

After installation, the package places a commit-msg hook in your .git/hooks directory (or a custom path if specified). This hook runs on every commit and checks your commit message against the Conventional Commits specification using a regex. If the message is invalid, the commit is rejected and guidance is shown.

The validation script automatically skips validation for merge, WIP, and revert commits.

Configuration

You can install the hook to a custom path:

You may also specify a custom stub file for the hook script:

Troubleshooting

Common Issues

If you encounter other issues, please open an issue on GitHub with details.

Uninstallation

To remove the commit lint hook, simply delete the commit-msg file from your .git/hooks directory:

To remove the package:

FAQ

Q: Does this work with all git clients? A: Yes, as long as your client supports git hooks.

Q: Can I customize the commit message rules? A: You can modify the stub or extend the validation logic in the package.

Q: Will this block merge commits? A: No, merge, WIP, and revert commits are skipped.

Contributing

Contributions are welcome! Please open issues or submit pull requests via GitHub. Follow Conventional Commits for your messages.

For questions and discussions, visit GitHub Discussions.

For more details, see the Contributing Guide.

License

This project is licensed under the MIT License.

Security

Please refer to our Security Policy for reporting vulnerabilities and security concerns.


All versions of laravel-commit-lint with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2
illuminate/support Version ^12.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 mubbi/laravel-commit-lint contains the following files

Loading the files please wait ....