Download the PHP package nocturnal/pre-commit-guard without Composer
On this page you can find all versions of the php package nocturnal/pre-commit-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nocturnal/pre-commit-guard
More information about nocturnal/pre-commit-guard
Files in nocturnal/pre-commit-guard
Download nocturnal/pre-commit-guard
More information about nocturnal/pre-commit-guard
Files in nocturnal/pre-commit-guard
Vendor nocturnal
Package pre-commit-guard
Short Description Git pre-commit guard for Laravel apps (Pint, PHPStan, etc.)
License MIT
Package pre-commit-guard
Short Description Git pre-commit guard for Laravel apps (Pint, PHPStan, etc.)
License MIT
Please rate this library. Is it a good library?
Informations about the package pre-commit-guard
Pre-Commit Guard
A Laravel package that helps enforce code quality checks before commits using Git hooks.
Installation
1. Require the Package
2. Remove Ad-Hoc Hook Installer (if any)
If you currently use custom hook installation scripts like:
post-install-cmd: ["@setup-dev-hooks"]"setup-dev-hooks": ["@php install-dev-hooks.php"]
You can remove them as this package provides a more robust solution.
3. Publish and Install Hooks
Usage
After installation, the Git pre-commit hook will automatically run Pint and PHPStan checks when you make a commit. The commit will be blocked if any of these checks fail.
Configuration
Presets
- Pint configuration and rules are included in the stubs and will be inherited by consuming projects.
- PHPStan configuration is also included in the stubs for consistent code quality checks.
Your existing Pint preset and rules will be preserved when installing this package.
All versions of pre-commit-guard with dependencies
PHP Build Version
Package Version
The package nocturnal/pre-commit-guard contains the following files
Loading the files please wait ...