Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoangphidev/pre-commit
Laravel Pre-commit
https://github.com/hoangphidev/pre-commit
git-pre-commit laravel-package laravel-standard php-codesniffer php-standard pre-commit-hooks
Last synced: 4 days ago
JSON representation
Laravel Pre-commit
- Host: GitHub
- URL: https://github.com/hoangphidev/pre-commit
- Owner: hoangphidev
- License: mit
- Created: 2022-09-20T04:38:08.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-06-12T04:49:29.000Z (over 1 year ago)
- Last Synced: 2024-08-09T09:37:55.527Z (3 months ago)
- Topics: git-pre-commit, laravel-package, laravel-standard, php-codesniffer, php-standard, pre-commit-hooks
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Pre-commit
[![Latest Version on Packagist](https://img.shields.io/packagist/v/hoangphi/pre-commit.svg?style=flat-square)](https://packagist.org/packages/hoangphi/pre-commit)
[![Total Downloads](https://img.shields.io/packagist/dt/hoangphi/pre-commit.svg?style=flat-square)](https://packagist.org/packages/hoangphi/pre-commit)## Installation
```bash
composer require hoangphi/pre-commit
```Publish the configuration:
```bash
php artisan vendor:publish --provider="HoangPhi\PreCommit\Providers\PreCommitServiceProvider" --tag=config
```### Config pre-commit hooks
```bash
php artisan pre-commit:install
```- Create PSR default config `phpcs.xml` in your root project.
```bash
php artisan pre-commit:create-phpcs
```- Added all changed files to git stage and run test manually.
```bash
php artisan pre-commit:check
```