2024-04-05 01:40:22 +02:00
|
|
|
# Bluesquare Hooks
|
|
|
|
|
|
|
|
This repository contains a collection of git hooks that can be used to enforce code quality and best practices in your Laravel projects.
|
|
|
|
|
|
|
|
It automatically installs git hooks.
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2024-04-05 01:54:22 +02:00
|
|
|
Edit your `composer.json` file to include the following dependency, script and repository:
|
2024-04-05 01:40:22 +02:00
|
|
|
|
|
|
|
```
|
2024-04-05 01:54:22 +02:00
|
|
|
"require": {
|
|
|
|
"bluesquare/laravel-hooks": "dev-main"
|
2024-04-05 01:40:22 +02:00
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"post-autoload-dump": [
|
2024-04-05 01:54:22 +02:00
|
|
|
"@php artisan hooks:install --ansi"
|
2024-04-05 01:40:22 +02:00
|
|
|
],
|
|
|
|
},
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "vcs",
|
2024-04-05 01:54:22 +02:00
|
|
|
"url": "https://git.bluesquare.io/bluesquare/laravel-hooks.git"
|
2024-04-05 01:40:22 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
```
|
|
|
|
|
|
|
|
Then run:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
composer update bluesquare/hooks --dev
|
|
|
|
```
|