PHPackages                             woocommerce/woocommerce-git-hooks - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. woocommerce/woocommerce-git-hooks

AbandonedArchivedScripts[Utility &amp; Helpers](/categories/utility)

woocommerce/woocommerce-git-hooks
=================================

WooCommerce Git Hooks

1.0.5(8y ago)1045.0k↓43.8%2MITPHP

Since Jun 27Pushed 6y ago123 watchersCompare

[ Source](https://github.com/woocommerce/woocommerce-git-hooks)[ Packagist](https://packagist.org/packages/woocommerce/woocommerce-git-hooks)[ RSS](/packages/woocommerce-woocommerce-git-hooks/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (7)Used By (2)

WooCommerce Git Hooks
=====================

[](#woocommerce-git-hooks)

Collection of WooCommerce core git hooks.

Installation
------------

[](#installation)

```
composer require woocommerce/woocommerce-git-hooks
```

Usage
-----

[](#usage)

Include the follow lines into the project's `composer.json`:

```
    "scripts": {
        "pre-update-cmd": "WooCommerce\\GitHooks\\Hooks::preHooks",
        "pre-install-cmd": "WooCommerce\\GitHooks\\Hooks::preHooks",
        "post-update-cmd": "WooCommerce\\GitHooks\\Hooks::postHooks",
        "post-install-cmd": "WooCommerce\\GitHooks\\Hooks::postHooks"
    }

```

### Manual setup (optional)

[](#manual-setup-optional)

By default should already run all commands from composer `scripts` when installed, but if necessary run it manually is possible with the follow commands:

```
composer run-script pre-update-cmd
composer run-script post-update-cmd
```

Release history
---------------

[](#release-history)

- 2017-12-18 - 1.0.5 - Fixed how check for `phpcs.xml.dist`.
- 2017-12-18 - 1.0.4 - Auto detects `phpcs.xml` or `phpcs.xml.dist` by default. No longer accepts `phpcs.ruleset.xml`.
- 2017-11-09 - 1.0.3 - Removed list of ignored directories.
- 2017-09-27 - 1.0.2 - Uses `phpcs.ruleset.xml` instead of `dev.ruleset.xml`.
- 2017-07-20 - 1.0.1 - Ignore 3rd party libraries and legacy code.
- 2017-06-26 - 1.0.0 - Initial release.

Sources
-------

[](#sources)

Inspired by:

-
-

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~34 days

Total

6

Last Release

3073d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d1f9b32f9677791fbef38b00c9225e05800f525b3b13872b118fd344a58350a0?d=identicon)[woocommerce](/maintainers/woocommerce)

---

Top Contributors

[![claudiosanches](https://avatars.githubusercontent.com/u/1264099?v=4)](https://github.com/claudiosanches "claudiosanches (17 commits)")[![kloon](https://avatars.githubusercontent.com/u/271630?v=4)](https://github.com/kloon "kloon (1 commits)")

### Embed Badge

![Health badge](/badges/woocommerce-woocommerce-git-hooks/health.svg)

```
[![Health](https://phpackages.com/badges/woocommerce-woocommerce-git-hooks/health.svg)](https://phpackages.com/packages/woocommerce-woocommerce-git-hooks)
```

###  Alternatives

[nterms/yii2-pagesize-widget

Widget for enabling dynamic page size selection on GridView

38295.0k2](/packages/nterms-yii2-pagesize-widget)[ijanki/ftp-bundle

A Symfony2 Bundle to wrap the PHP ftp extension functionality in a more classy way.

22674.4k](/packages/ijanki-ftp-bundle)[integer-net/magento2-global-custom-layout

Module for Magento 2 that allows you to add global layout update files to be selected from admin, by using '0' instead of an entity\_id

4095.4k](/packages/integer-net-magento2-global-custom-layout)[stidges/laravel-country-flags

A Laravel wrapper for the stidges/country-flags package

28134.6k](/packages/stidges-laravel-country-flags)[graze/sort

A collection of array sorting transforms and functions

12289.6k2](/packages/graze-sort)[yemenifree/laravel-arabic-numbers-middleware

auto transforms arabic/eastern to eastern/arabic numbers for i.e ١٢٣٤٥٦٧٨ to 12345678

18135.4k](/packages/yemenifree-laravel-arabic-numbers-middleware)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
