PHPackages                             developmint/netlify-build-hook - 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. developmint/netlify-build-hook

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

developmint/netlify-build-hook
==============================

Trigger your Netlify build hooks with ease

v1.0(6y ago)04821MITPHPPHP ^7.0

Since Aug 16Pushed 6y ago2 watchersCompare

[ Source](https://github.com/Developmint/netlify-build-hook)[ Packagist](https://packagist.org/packages/developmint/netlify-build-hook)[ Docs](https://github.com/developmint/netlify-build-hook)[ RSS](/packages/developmint-netlify-build-hook/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Trigger your Netlify build hooks with ease
==========================================

[](#trigger-your-netlify-build-hooks-with-ease)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fc816d8c270d179fed672fbea07f4e1e3f07af340515ff2c7b663e1236afac88/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f646576656c6f706d696e742f6e65746c6966792d6275696c642d686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/developmint/netlify-build-hook)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8d2c0c6dcccd5783a7dba5fdfd4d7342f44b52635be2afd8f43b47e8ffd6db6d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f446576656c6f706d696e742f6e65746c6966792d6275696c642d686f6f6b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Developmint/netlify-build-hook)[![Quality Score](https://camo.githubusercontent.com/fd0b684f46e41a74863683396d6e950fb203e39d50426a4f40af5c1ca10e9e2a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f646576656c6f706d696e742f6e65746c6966792d6275696c642d686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/developmint/netlify-build-hook)[![Total Downloads](https://camo.githubusercontent.com/e70ef12933670ce9705fabd755746757731d2b26423b1dfcc85f6344f732407e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f646576656c6f706d696e742f6e65746c6966792d6275696c642d686f6f6b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/developmint/netlify-build-hook)

This package provides a lightweight class to trigger your [Netlify build hooks](https://www.netlify.com/docs/webhooks/#incoming-webhooks)properly.

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

[](#installation)

You can install the package via composer:

```
composer require developmint/netlify-build-hook
```

Usage
-----

[](#usage)

You must pass the following things to the constructor of `Developmint\NetlifyBuildHook\NetlifyBuildHook`.

- A Guzzle client
- The unique Identifier of you build hook (the last part of the build hook URL).

The last two arguments are optional:

- A custom title shown on Netlify
- Another branch the deploy should use

```
$client = new \GuzzleHttp\Client();
$id = 'XXX'
$hook = new \Developmint\NetlifyBuildHook\NetlifyBuildHook($client, $id);

// Alternatively

// With title
$hook = new \Developmint\NetlifyBuildHook\NetlifyBuildHook($client, $id, 'My custom title');

// With branch
$hook = new \Developmint\NetlifyBuildHook\NetlifyBuildHook($client, $id, null, 'other-branch');

// With everything
$hook = new \Developmint\NetlifyBuildHook\NetlifyBuildHook($client, $id, 'My custom title', 'branch-name');
```

### Get stats for a package of your choice

[](#get-stats-for-a-package-of-your-choice)

Trigger the hook with the corresponding `trigger`function of your class instance (from above). If a problem occurs, a `RequestException` will be thrown.

```
$hook->trigger();
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

Testing wasn't entirely possible as mocking the hooks doesn't help anyone and test hooks are not available.

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Alexander Lichter](https://github.com/manniL)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2510d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29969219?v=4)[Developmint ](/maintainers/developmint)[@Developmint](https://github.com/Developmint)

---

Top Contributors

[![TheAlexLichter](https://avatars.githubusercontent.com/u/640208?v=4)](https://github.com/TheAlexLichter "TheAlexLichter (2 commits)")

---

Tags

buildbuildhookhooknetlifyphpwebhookwebhookHOOKbuildnetlifybuildhook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/developmint-netlify-build-hook/health.svg)

```
[![Health](https://phpackages.com/badges/developmint-netlify-build-hook/health.svg)](https://phpackages.com/packages/developmint-netlify-build-hook)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k34](/packages/neuron-core-neuron-ai)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

346132.9M110](/packages/google-cloud-core)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[roundcube/roundcubemail

The Roundcube Webmail suite

7.0k1.4k3](/packages/roundcube-roundcubemail)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[workos/workos-php

WorkOS PHP Library

423.0M9](/packages/workos-workos-php)

PHPackages © 2026

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