承接 zabaala/laravel_precommit 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

zabaala/laravel_precommit

Composer 安装命令:

composer require zabaala/laravel_precommit

包简介

A git pre-commit hook to Laravel apps.

README 文档

README

A Laravel package to analyze your PHP code and check your PHPUnit tests before commit your code.

Requirements

  • PHP >= 7.0.0
  • phpunit/phpunit ~6.0
  • squizlabs/php_codesniffer ~6.0

How to install

1. Include package dependencie into composer.json:

composer require zabaala/laravel-pre-commit

2. Discover the package Service Provider

If you're using Laravel 5.5 version, this package will be auto-discovered. But if you're using any other Laravel 5 version, you will need add the PreCommitServiceProvider inside of your config/app.php file:

// ...
\Zabaala\PreCommit\PreCommitServiceProvider::class,

3. Create the pre-commit file

Create a pre-commit file in: .git/hooks/pre-commit with the content below:

#!/bin/bash

./artisan git:pre-commit

Usage

Modify and commit any file.

License

MIT

统计信息

  • 总下载量: 415
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 46
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 46
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固